thor_template 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -10
- data/lib/starter_project/lib/thor_template/cli.rb +0 -17
- data/lib/thor_template/version.rb +1 -1
- data/spec/lib/cli_spec.rb +0 -1
- data/spec/lib/generator_spec.rb +0 -1
- data/spec/spec_helper.rb +4 -0
- metadata +4 -4
- data/lib/starter_project/Gemfile.lock +0 -85
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 562b2072b4d2c602833dba56cf5aacfff6009df8
|
4
|
+
data.tar.gz: 8e285ffc3ed710ace50d2cc9e8f3f2df38f2489e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 624c5fd85b401b7e3c85f59d38ed0187114dab6e0e30b6de28046f472957e2c7b49385137720af95fddac60967520611e5ffa76eb0070979ff5a535deeafd223
|
7
|
+
data.tar.gz: bc3a927c62ac4ed818027833a26cb0278f01844a81f84b4e5c3353fdc42f5d9f2ef1c66fc41df9a4d789f4d1cc4e20dd4bdfe8ab580dadd6d99004a1841a3ee8
|
data/README.md
CHANGED
@@ -14,15 +14,9 @@ $ gem install thor_template
|
|
14
14
|
## Usage
|
15
15
|
|
16
16
|
<pre>
|
17
|
-
$ thor_template new
|
17
|
+
$ thor_template new foo
|
18
|
+
$ cd foo
|
19
|
+
$ bin/foo hello world
|
18
20
|
</pre>
|
19
21
|
|
20
|
-
This generates a starter cli project called hello.
|
21
|
-
|
22
|
-
## Contributing
|
23
|
-
|
24
|
-
1. Fork it
|
25
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
26
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
27
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
28
|
-
5. Create new Pull Request
|
22
|
+
This generates a starter cli project called foo with a working hello command.
|
@@ -3,21 +3,6 @@ require 'thor_template/cli/help'
|
|
3
3
|
|
4
4
|
module ThorTemplate
|
5
5
|
|
6
|
-
class Remote < Thor
|
7
|
-
desc "add <name> <url>", "Adds a remote named <name> for the repository at <url>"
|
8
|
-
long_desc Help.remote_add
|
9
|
-
option :t, :banner => "<branch>"
|
10
|
-
option :m, :banner => "<master>"
|
11
|
-
options :f => :boolean, :tags => :boolean, :mirror => :string
|
12
|
-
def add(name, url)
|
13
|
-
# implement git remote add
|
14
|
-
end
|
15
|
-
|
16
|
-
desc "rename <old> <new>", "Rename the remote named <old> to <new>"
|
17
|
-
def rename(old, new)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
6
|
class CLI < Thor
|
22
7
|
class_option :verbose, :type => :boolean
|
23
8
|
|
@@ -35,7 +20,5 @@ module ThorTemplate
|
|
35
20
|
# implement git fetch here
|
36
21
|
end
|
37
22
|
|
38
|
-
desc "remote SUBCOMMAND ...ARGS", "manage set of tracked repositories"
|
39
|
-
subcommand "remote", Remote
|
40
23
|
end
|
41
24
|
end
|
data/spec/lib/cli_spec.rb
CHANGED
data/spec/lib/generator_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -25,6 +25,10 @@ end
|
|
25
25
|
|
26
26
|
RSpec.configure do |c|
|
27
27
|
c.include Helpers
|
28
|
+
c.before(:all) do
|
29
|
+
FileUtils.mkdir('tmp') unless File.exist?('tmp')
|
30
|
+
FileUtils.rm_rf("tmp/hello")
|
31
|
+
end
|
28
32
|
c.around(:each) do |example|
|
29
33
|
VCR.use_cassette(example.metadata[:full_description], :serialize_with => :json) do
|
30
34
|
example.run
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thor_template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -168,7 +168,6 @@ files:
|
|
168
168
|
- bin/thor_template
|
169
169
|
- lib/starter_project/.gitignore
|
170
170
|
- lib/starter_project/Gemfile
|
171
|
-
- lib/starter_project/Gemfile.lock
|
172
171
|
- lib/starter_project/Guardfile
|
173
172
|
- lib/starter_project/LICENSE.txt
|
174
173
|
- lib/starter_project/README.md
|
@@ -211,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
210
|
version: '0'
|
212
211
|
requirements: []
|
213
212
|
rubyforge_project:
|
214
|
-
rubygems_version: 2.0
|
213
|
+
rubygems_version: 2.3.0
|
215
214
|
signing_key:
|
216
215
|
specification_version: 4
|
217
216
|
summary: Generates starter cli tool project.
|
@@ -219,3 +218,4 @@ test_files:
|
|
219
218
|
- spec/lib/cli_spec.rb
|
220
219
|
- spec/lib/generator_spec.rb
|
221
220
|
- spec/spec_helper.rb
|
221
|
+
has_rdoc:
|
@@ -1,85 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
thor_template (0.0.1)
|
5
|
-
aws-sdk
|
6
|
-
colorize
|
7
|
-
hashie
|
8
|
-
thor
|
9
|
-
|
10
|
-
GEM
|
11
|
-
remote: https://rubygems.org/
|
12
|
-
specs:
|
13
|
-
aws-sdk (1.31.3)
|
14
|
-
json (~> 1.4)
|
15
|
-
nokogiri (>= 1.4.4)
|
16
|
-
uuidtools (~> 2.1)
|
17
|
-
celluloid (0.15.2)
|
18
|
-
timers (~> 1.1.0)
|
19
|
-
coderay (1.1.0)
|
20
|
-
colorize (0.6.0)
|
21
|
-
diff-lcs (1.2.5)
|
22
|
-
fakeweb (1.3.0)
|
23
|
-
ffi (1.9.3)
|
24
|
-
formatador (0.2.4)
|
25
|
-
guard (2.2.4)
|
26
|
-
formatador (>= 0.2.4)
|
27
|
-
listen (~> 2.1)
|
28
|
-
lumberjack (~> 1.0)
|
29
|
-
pry (>= 0.9.12)
|
30
|
-
thor (>= 0.18.1)
|
31
|
-
guard-bundler (2.0.0)
|
32
|
-
bundler (~> 1.0)
|
33
|
-
guard (~> 2.2)
|
34
|
-
guard-rspec (4.0.4)
|
35
|
-
guard (>= 2.1.1)
|
36
|
-
rspec (~> 2.14)
|
37
|
-
hashie (2.0.5)
|
38
|
-
json (1.8.1)
|
39
|
-
listen (2.2.0)
|
40
|
-
celluloid (>= 0.15.2)
|
41
|
-
rb-fsevent (>= 0.9.3)
|
42
|
-
rb-inotify (>= 0.9)
|
43
|
-
lumberjack (1.0.4)
|
44
|
-
method_source (0.8.2)
|
45
|
-
mini_portile (0.5.2)
|
46
|
-
multi_json (1.8.2)
|
47
|
-
nokogiri (1.6.1)
|
48
|
-
mini_portile (~> 0.5.0)
|
49
|
-
pry (0.9.12.4)
|
50
|
-
coderay (~> 1.0)
|
51
|
-
method_source (~> 0.8)
|
52
|
-
slop (~> 3.4)
|
53
|
-
rake (10.1.0)
|
54
|
-
rb-fsevent (0.9.3)
|
55
|
-
rb-inotify (0.9.2)
|
56
|
-
ffi (>= 0.5.0)
|
57
|
-
rspec (2.14.1)
|
58
|
-
rspec-core (~> 2.14.0)
|
59
|
-
rspec-expectations (~> 2.14.0)
|
60
|
-
rspec-mocks (~> 2.14.0)
|
61
|
-
rspec-core (2.14.7)
|
62
|
-
rspec-expectations (2.14.4)
|
63
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
64
|
-
rspec-mocks (2.14.4)
|
65
|
-
slop (3.4.7)
|
66
|
-
thor (0.18.1)
|
67
|
-
thor-vcr (0.0.3)
|
68
|
-
fakeweb
|
69
|
-
multi_json
|
70
|
-
vcr
|
71
|
-
timers (1.1.0)
|
72
|
-
uuidtools (2.1.4)
|
73
|
-
vcr (2.8.0)
|
74
|
-
|
75
|
-
PLATFORMS
|
76
|
-
ruby
|
77
|
-
|
78
|
-
DEPENDENCIES
|
79
|
-
bundler (~> 1.3)
|
80
|
-
guard
|
81
|
-
guard-bundler
|
82
|
-
guard-rspec
|
83
|
-
rake
|
84
|
-
thor-vcr
|
85
|
-
thor_template!
|