app_stack 1.6.0 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'http://ruby.taobao.org'
3
3
  gem 'diffy'
4
4
  gem 'tilt'
5
5
  gem 'term-ansicolor'
6
- gem 'activesupport'
6
+ gem 'hash-deep-merge'
7
7
 
8
8
  group :development, :test do
9
9
  gem 'rspec'
@@ -1,55 +1,46 @@
1
1
  GEM
2
2
  remote: http://ruby.taobao.org/
3
3
  specs:
4
- activesupport (4.0.0)
5
- i18n (~> 0.6, >= 0.6.4)
6
- minitest (~> 4.2)
7
- multi_json (~> 1.3)
8
- thread_safe (~> 0.1)
9
- tzinfo (~> 0.3.37)
10
4
  ast (1.1.0)
11
- atomic (1.1.13)
12
- diff-lcs (1.2.4)
5
+ diff-lcs (1.2.5)
13
6
  diffy (3.0.1)
14
- i18n (0.6.5)
15
- minitest (4.7.5)
16
- multi_json (1.8.0)
17
- parser (2.0.0)
7
+ docile (1.1.1)
8
+ hash-deep-merge (0.1.1)
9
+ multi_json (1.8.2)
10
+ parser (2.1.1)
18
11
  ast (~> 1.1)
19
12
  slop (~> 3.4, >= 3.4.5)
20
13
  powerpack (0.0.9)
21
- rainbow (1.1.4)
14
+ rainbow (1.99.1)
22
15
  rspec (2.14.1)
23
16
  rspec-core (~> 2.14.0)
24
17
  rspec-expectations (~> 2.14.0)
25
18
  rspec-mocks (~> 2.14.0)
26
- rspec-core (2.14.5)
27
- rspec-expectations (2.14.3)
19
+ rspec-core (2.14.7)
20
+ rspec-expectations (2.14.4)
28
21
  diff-lcs (>= 1.1.3, < 2.0)
29
- rspec-mocks (2.14.3)
30
- rubocop (0.14.1)
31
- parser (~> 2.0)
22
+ rspec-mocks (2.14.4)
23
+ rubocop (0.16.0)
24
+ parser (~> 2.1)
32
25
  powerpack (~> 0.0.6)
33
26
  rainbow (>= 1.1.4)
34
- simplecov (0.7.1)
35
- multi_json (~> 1.0)
36
- simplecov-html (~> 0.7.1)
37
- simplecov-html (0.7.1)
38
- slop (3.4.6)
27
+ simplecov (0.8.2)
28
+ docile (~> 1.1.0)
29
+ multi_json
30
+ simplecov-html (~> 0.8.0)
31
+ simplecov-html (0.8.0)
32
+ slop (3.4.7)
39
33
  term-ansicolor (1.2.2)
40
34
  tins (~> 0.8)
41
- thread_safe (0.1.2)
42
- atomic
43
- tilt (1.4.1)
44
- tins (0.11.0)
45
- tzinfo (0.3.37)
35
+ tilt (2.0.0)
36
+ tins (0.13.1)
46
37
 
47
38
  PLATFORMS
48
39
  ruby
49
40
 
50
41
  DEPENDENCIES
51
- activesupport
52
42
  diffy
43
+ hash-deep-merge
53
44
  rspec
54
45
  rubocop
55
46
  simplecov
@@ -14,7 +14,8 @@ Gem::Specification.new 'app_stack', AppStack::VERSION do |s|
14
14
 
15
15
  s.add_dependency 'tilt'
16
16
  s.add_dependency 'term-ansicolor'
17
- s.add_dependency 'activesupport'
17
+ # s.add_dependency 'activesupport'
18
+ s.add_dependency 'hash-deep-merge'
18
19
  s.add_dependency 'diffy'
19
20
  s.add_development_dependency 'rspec'
20
21
  s.add_development_dependency 'rubocop'
@@ -6,7 +6,7 @@ class String; include Term::ANSIColor end
6
6
 
7
7
  require 'yaml'
8
8
  require 'pp'
9
- require 'active_support/core_ext/hash/deep_merge'
9
+ require 'hash_deep_merge'
10
10
  require 'tempfile'
11
11
  require 'diffy'
12
12
  require 'tilt'
@@ -34,13 +34,13 @@ module AppStack
34
34
  @app_stacks[app] = App.new(AppStack.find_conf_file(app_dir), app_dir)
35
35
  @app_stacks[app].rel_path = File.join(directory, config.stack_dir, app)
36
36
  @app_stacks[app].parse_export_groups!
37
- @attrs.deep_merge! @app_stacks[app].config.attrs
37
+ @attrs = @attrs.deep_merge @app_stacks[app].config.attrs
38
38
 
39
39
  # info "load app #{app.bold} as", @app_stacks[app]
40
40
  info "load app #{app.bold}"
41
41
  end
42
42
 
43
- @attrs.deep_merge! config.attrs
43
+ @attrs = @attrs.deep_merge config.attrs
44
44
  info 'merged attrs', attrs
45
45
  @app_stacks
46
46
  end
@@ -66,13 +66,13 @@ module AppStack
66
66
  def label
67
67
  str = "#{operation} #{from_file_short_name.blue} from " +
68
68
  "#{from_app.app_name.bold}"
69
- str << "as #{to_file_short_name.blue}" unless
69
+ str << " as #{to_file_short_name.blue}" unless
70
70
  to_file_short_name == from_file_short_name
71
71
  str
72
72
  end
73
73
 
74
74
  def reverse_label
75
- "Copy back #{from_file_short_name.blue} to #{to_app.app_name.bold}"
75
+ "copy back #{from_file_short_name.blue} to #{to_app.app_name.bold}"
76
76
  end
77
77
 
78
78
  def skip(msg)
@@ -44,6 +44,7 @@ module AppStack
44
44
  @rev_list[i + 1] = f
45
45
  end
46
46
 
47
+ return unless @rev_list.keys.size > 0
47
48
  puts "Which file you want to copy reversely?"
48
49
  print "(1 2 ...):"
49
50
  lists = gets.chomp.split(/\s+/)
@@ -2,5 +2,5 @@
2
2
 
3
3
  # AppStack module
4
4
  module AppStack
5
- VERSION = '1.6.0'
5
+ VERSION = '1.6.2'
6
6
  end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_stack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.2
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Huang Wei
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-12-05 00:00:00.000000000 Z
12
+ date: 2013-12-30 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: tilt
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ! '>='
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ! '>='
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: term-ansicolor
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ! '>='
32
36
  - !ruby/object:Gem::Version
@@ -34,13 +38,15 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
- name: activesupport
47
+ name: hash-deep-merge
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ! '>='
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ! '>='
53
60
  - !ruby/object:Gem::Version
@@ -55,6 +62,7 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: diffy
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ! '>='
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ! '>='
67
76
  - !ruby/object:Gem::Version
@@ -69,6 +78,7 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: rspec
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ! '>='
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ! '>='
81
92
  - !ruby/object:Gem::Version
@@ -83,6 +94,7 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: rubocop
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - ! '>='
88
100
  - !ruby/object:Gem::Version
@@ -90,6 +102,7 @@ dependencies:
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - ! '>='
95
108
  - !ruby/object:Gem::Version
@@ -97,6 +110,7 @@ dependencies:
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: simplecov
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
115
  - - ! '>='
102
116
  - !ruby/object:Gem::Version
@@ -104,6 +118,7 @@ dependencies:
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
123
  - - ! '>='
109
124
  - !ruby/object:Gem::Version
@@ -157,26 +172,27 @@ files:
157
172
  homepage: https://github.com/7lime/app_stack-gem
158
173
  licenses:
159
174
  - MIT
160
- metadata: {}
161
175
  post_install_message:
162
176
  rdoc_options: []
163
177
  require_paths:
164
178
  - lib
165
179
  required_ruby_version: !ruby/object:Gem::Requirement
180
+ none: false
166
181
  requirements:
167
182
  - - ! '>='
168
183
  - !ruby/object:Gem::Version
169
184
  version: '0'
170
185
  required_rubygems_version: !ruby/object:Gem::Requirement
186
+ none: false
171
187
  requirements:
172
188
  - - ! '>='
173
189
  - !ruby/object:Gem::Version
174
190
  version: '0'
175
191
  requirements: []
176
192
  rubyforge_project:
177
- rubygems_version: 2.0.6
193
+ rubygems_version: 1.8.23
178
194
  signing_key:
179
- specification_version: 4
195
+ specification_version: 3
180
196
  summary: Use as a rake task, define a stack of modules and app-stack will merge files
181
197
  from those stack-apps to the local application directory.
182
198
  test_files:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZTk2N2NhYjI5MjYyNzhiOWY0NDA2NzY4NWRmNWY1M2IxMjk3NGQyMA==
5
- data.tar.gz: !binary |-
6
- NDcxNzJmMTI2M2E1ZDU5ZmNmOTZhYjVhY2U0NmM3Y2Y4MTEyYWUyMg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- YmE3NjFkM2U4YmRkMjU0NjM2NDhhMjQ2NzJhYTVlMjcxMjJjOTE5YTA4Njll
10
- ODY5Zjg3ZjE1NmJmMzc3YTBjMDFiOGE0MjVkNjJkYWE5NjY3MzlmZTU0MjUz
11
- MWJlODBjMjA5NWM2ZGViZTg2OWNkNmU0Mjg3YzMyMDdmNzE1NWI=
12
- data.tar.gz: !binary |-
13
- OTFjNGNiYzkyMjA4ZjFkOGNkMjg5YmMyNWZiNGI0YWQ5MjNhYzcyNTc2OGUy
14
- YzkxY2M3MGQxMTdiYmFlNzgxYTQ3NzBmNTFmNDNhY2E1YzNmYjEyZjAzMGMy
15
- ZDA5ZGUyZGY5NjJiOGYxMDlmMmIwYjgxNDJlODVhMzFhY2E1NTQ=