dev_commands 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,15 @@
1
- require_relative '../lib/commands.rb'
2
-
3
- describe Commands do
4
- it "should be able to automatically generate commands for a particular directory" do
5
- commands=Commands.new
6
- end
1
+ require_relative '../lib/commands.rb'
2
+
3
+ describe Commands do
4
+ it "should be able to automatically generate commands for a particular directory" do
5
+ dir='spec/gem-example'
6
+ expect(File.exists?("#{dir}/rakefile.rb")).to eq(true)
7
+
8
+ Dir.chdir(dir) do
9
+ commands=Commands.new
10
+ expect(commands.has_key?(:pull)).to eq(true)
11
+ commands[:pull].update
12
+ expect(commands[:pull].length).to eq(0)
13
+ end
14
+ end
7
15
  end
@@ -0,0 +1,5 @@
1
+ require_relative('../../lib/dev_commands.rb')
2
+
3
+ task :default do
4
+ COMMANDS.execute
5
+ end
@@ -1,12 +1,12 @@
1
- require_relative '../lib/text.rb'
2
-
3
- describe Text do
4
- it "should be able to replace text in file" do
5
- FileUtils.mkdir('tmp') if(!File.exists?('tmp'))
6
- File.open('tmp/test.txt','w'){|f|
7
- f.write("test thing")
8
- }
9
- Text.replace_in_file('tmp/test.txt','thing','string')
10
- expect(IO.read('tmp/test.txt').include?('test string')).to eq(true)
11
- end
1
+ require_relative '../lib/text.rb'
2
+
3
+ describe Text do
4
+ it "should be able to replace text in file" do
5
+ FileUtils.mkdir('tmp') if(!File.exists?('tmp'))
6
+ File.open('tmp/test.txt','w'){|f|
7
+ f.write("test thing")
8
+ }
9
+ Text.replace_in_file('tmp/test.txt','thing','string')
10
+ expect(IO.read('tmp/test.txt').include?('test string')).to eq(true)
11
+ end
12
12
  end
metadata CHANGED
@@ -1,153 +1,174 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_commands
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Lou Parslow
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-01-11 00:00:00.000000000 Z
12
+ date: 2015-01-12 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rake
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
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
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rspec
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
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
47
  name: json
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
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
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: yard
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - '>='
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
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
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: bundler
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - '>='
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :runtime
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
82
93
  version: '0'
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: rake
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - '>='
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
101
  version: '0'
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
96
109
  version: '0'
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: rspec
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - '>='
115
+ - - ! '>='
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
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
110
125
  version: '0'
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: json
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - '>='
131
+ - - ! '>='
116
132
  - !ruby/object:Gem::Version
117
133
  version: '0'
118
134
  type: :development
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
- - - '>='
139
+ - - ! '>='
123
140
  - !ruby/object:Gem::Version
124
141
  version: '0'
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: yard
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
- - - '>='
147
+ - - ! '>='
130
148
  - !ruby/object:Gem::Version
131
149
  version: '0'
132
150
  type: :development
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
- - - '>='
155
+ - - ! '>='
137
156
  - !ruby/object:Gem::Version
138
157
  version: '0'
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: bundler
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
- - - '>='
163
+ - - ! '>='
144
164
  - !ruby/object:Gem::Version
145
165
  version: '0'
146
166
  type: :development
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
- - - '>='
171
+ - - ! '>='
151
172
  - !ruby/object:Gem::Version
152
173
  version: '0'
153
174
  description: execution of system commands
@@ -169,40 +190,45 @@ files:
169
190
  - lib/gemspec.rb
170
191
  - lib/git.rb
171
192
  - lib/hash.rb
193
+ - lib/msbuild.rb
172
194
  - lib/publish.rb
195
+ - lib/pull.rb
173
196
  - lib/push.rb
174
197
  - lib/setup.rb
175
198
  - lib/test.rb
176
199
  - lib/text.rb
177
- - lib/timer.rb
178
- - spec/command_spec.rb
200
+ - lib/Timer.rb
201
+ - lib/update.rb
179
202
  - spec/commands_spec.rb
203
+ - spec/command_spec.rb
204
+ - spec/gem-example/rakefile.rb
180
205
  - spec/text_spec.rb
181
206
  - LICENSE
182
207
  - README.md
183
208
  homepage: http://github.com/lou-parslow/dev_commands.gem
184
209
  licenses:
185
210
  - Apache 2.0
186
- metadata: {}
187
211
  post_install_message:
188
212
  rdoc_options: []
189
213
  require_paths:
190
214
  - lib
191
215
  required_ruby_version: !ruby/object:Gem::Requirement
216
+ none: false
192
217
  requirements:
193
- - - '>='
218
+ - - ! '>='
194
219
  - !ruby/object:Gem::Version
195
220
  version: '0'
196
221
  required_rubygems_version: !ruby/object:Gem::Requirement
222
+ none: false
197
223
  requirements:
198
- - - '>='
224
+ - - ! '>='
199
225
  - !ruby/object:Gem::Version
200
226
  version: '0'
201
227
  requirements: []
202
228
  rubyforge_project:
203
- rubygems_version: 2.0.14
229
+ rubygems_version: 1.8.28
204
230
  signing_key:
205
- specification_version: 4
231
+ specification_version: 3
206
232
  summary: gem to execute system commands
207
233
  test_files: []
208
234
  has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 47bf0d07943e64ddfd283bab6a5448b98e96df3c
4
- data.tar.gz: ec2d82ead44bf49a772edd9f1989345c8a389044
5
- SHA512:
6
- metadata.gz: 9163703fa6787cbebd08d2119b1b70d58f10eed033aa57325dcd400c12ab70776f7580af00b227213924fbc321969ecd71bfe785bf4708cafcce46530a4ea856
7
- data.tar.gz: 4a268cf8037bfe4d58782328b50443f0f34abe5050f403e88dd751c33192e1a9873ec7ec0b52626b8714cf89083044a448a8b309849bf063ee47325111320830