Sha256: e941112f0f919f755c6e5cc27b9cdc2b305b2342647c16818939672010b11f10
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
unless defined?(Motion::Project::Config) raise "This file must be required within a RubyMotion project Rakefile." end require "motion/project/phrase" require "motion-cocoapods" Motion::Project::App.setup do |app| Dir.glob(File.join(File.dirname(__FILE__), 'motion-phrase/**/*.rb')).each do |file| app.files.unshift(file) end app.files.unshift("./app/phrase_config.rb") app.pods do pod 'AFNetworking', '>= 2.5.0' end end namespace :phrase do desc "Initialize PhraseApp for your RubyMotion project" task :init do auth_token = ENV['AUTH_TOKEN'] App.fail "Please specify your auth token, e.g. rake phrase:init AUTH_TOKEN=secret" unless auth_token result = `phrase init --secret=#{auth_token}` App.info "PHRASE", result end desc "Push your Localizable.strings files to PhraseApp" task :push do result = `phrase push --recursive ./resources` App.info "PHRASE", result end desc "Pull your current localization files files from PhraseApp" task :pull do result = `phrase pull --target=resources --format=strings` App.info "PHRASE", result end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion-phrase-0.0.6 | lib/motion-phrase.rb |