sidestep 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0afc6a8ca66f3852e1e0d55ed9324a692d580a70
4
- data.tar.gz: 54a2a93ee7c6e355e370e035e265ae36a1041604
3
+ metadata.gz: 704301fdf1e79f9fd36a869b51f4fe03faa29e0d
4
+ data.tar.gz: 65ec313641ece71919fab193ab466c70d0251f4e
5
5
  SHA512:
6
- metadata.gz: a49aa2db092260bb13349421ced92b82a00d2822e705f5127b60806c00bb388e74e764b8347f5905aaee945a4ead087de38cb9fb37f24bed650b25214f041bd9
7
- data.tar.gz: bd6623bc0c345849604bf1b5df39df31ba54f8cbde373cda620b4239801de98b1d50c30cc09de353541a28db9fd1fa6fc7b1bd0ea0b734d94f6c0169ec8534bb
6
+ metadata.gz: c21247a08e7ba8d3e9e79d31392a55927891acd6b4feb30d8a7d93cd8bbc8639a96f63a128011e521150b877b72c4ef2823760aabb532181f7a09ec03e4e91b0
7
+ data.tar.gz: 59dbbd16591415476d55e7c478627f564eb01c9aad1a870a6491feb34feea2638d97d3f5da5e47b78c6465d3a57c5349a37ebc56eb1c51b1efeccccb1f834f70
data/README.md CHANGED
@@ -26,6 +26,8 @@ You can also provide params to your controller (not available for android atm) :
26
26
 
27
27
  rake sidestep[MyController] id=5
28
28
 
29
+ *NOTE* : If you use zsh you need to escape the brackets => rake sidestep\[MyController\]
30
+
29
31
  ## Custom behavior
30
32
 
31
33
  If you need to add custom initialization (Google analytics SDK...) in the delegate before showing the controller, you can create your own `app_delegate.erb` (note: it's ERB not RB) at the root of the app. See this repository for example.
@@ -67,6 +67,10 @@ task :sidestep, [:controller] do |t, args|
67
67
  ARGV.shift
68
68
  keys = ARGV.map { |option| option.split("=") }.to_h
69
69
 
70
+ if keys.fetch('debug', nil)
71
+ ENV['debug'] = keys.delete('debug')
72
+ end
73
+
70
74
  Motion::Project::Sidestep.new(controller, keys).replace
71
75
 
72
76
  if App.config.template == :ios
@@ -1,3 +1,3 @@
1
1
  require 'erb'
2
2
  require 'fileutils'
3
- require './../lib/motion/project/sidestep'
3
+ require 'motion/project/sidestep'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidestep
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joffrey Jaffeux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-25 00:00:00.000000000 Z
11
+ date: 2015-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  version: '0'
55
55
  requirements: []
56
56
  rubyforge_project:
57
- rubygems_version: 2.2.2
57
+ rubygems_version: 2.4.5
58
58
  signing_key:
59
59
  specification_version: 4
60
60
  summary: Simple gem to load one specific controller on demand