gem_polish 0.0.1 → 0.0.2
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 +13 -3
- data/bin/create_gem +5 -1
- data/lib/gem_polish/version.rb +1 -1
- data/spec/gem_polish_spec.rb +0 -4
- metadata +15 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12cf40e16b83b5a99a5780f3abbc210e07d614fc
|
|
4
|
+
data.tar.gz: 925342a186338c06f0d15260ab317c28b3237006
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 92775a78eb91009b6924ce2aaa0be9f7984e32ec3346b39d8d92f2781bad8424244e0802ed2ad708d018748d4e93fe44e783d27e6f008631fb06a884ace2f1fb
|
|
7
|
+
data.tar.gz: ca72d0ca25e930adbfd17bbf05858abb8577f40dcc3dc8afa92ed864881f9b85e2c7551f47142bb9b5c1d5d576b516833dbf2397cf3287c345dbdb96a9ff1544
|
data/README.md
CHANGED
|
@@ -29,14 +29,24 @@ Unless `--no_default` is set, `polish_gem` will look into your home
|
|
|
29
29
|
directory for a `.gem_polish.yml` file, that can provide default values
|
|
30
30
|
for gem polishing. Check the `examples` folder for its formatting.
|
|
31
31
|
|
|
32
|
+
Here's an example of the syntax:
|
|
33
|
+
```
|
|
34
|
+
# inside a new gem called test
|
|
35
|
+
polish_gem -nc -d 'a test gem' -t 1.9.3 jruby-1.7.8 -b travis coveralls
|
|
36
|
+
```
|
|
37
|
+
This would polish the test gem with coveralls support,
|
|
38
|
+
circumventing the `.gem_polish.yml` file, adding a description,
|
|
39
|
+
using two ruby versions for travis and adding two badges to the
|
|
40
|
+
README file.
|
|
41
|
+
|
|
42
|
+
|
|
32
43
|
* create_gem
|
|
33
44
|
|
|
34
45
|
Combines gem creation and polishing:
|
|
35
46
|
```
|
|
36
47
|
create_gem my_new_gem
|
|
37
48
|
```
|
|
38
|
-
This will create the new gem `my_new_gem`. Arguments can be passed to
|
|
39
|
-
override defaults or provide a description.
|
|
49
|
+
This will create the new gem `my_new_gem`. Arguments of `polish_gem` can be passed to override defaults or provide a description.
|
|
40
50
|
```
|
|
41
51
|
create_gem my_new_gem -d 'Does nothing so far'
|
|
42
52
|
```
|
|
@@ -45,7 +55,7 @@ provide the `rspec` test framework by default.
|
|
|
45
55
|
|
|
46
56
|
## Contributing
|
|
47
57
|
|
|
48
|
-
1. Fork it ( http://github.com
|
|
58
|
+
1. Fork it ( http://github.com/LFDM/gem_polish/fork )
|
|
49
59
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
50
60
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
51
61
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/bin/create_gem
CHANGED
|
@@ -10,8 +10,12 @@ name = ARGV.shift
|
|
|
10
10
|
# hardcoding rspec as testframework
|
|
11
11
|
conf = '-t rspec'
|
|
12
12
|
|
|
13
|
+
rebuilt_arguments = ARGV.map do |opt|
|
|
14
|
+
opt.start_with?('-') ? opt : %{"#{opt}"}
|
|
15
|
+
end.join(' ')
|
|
16
|
+
|
|
13
17
|
b_command = "bundle gem #{name} #{conf}"
|
|
14
|
-
p_command = "polish_gem #{name} #{
|
|
18
|
+
p_command = "polish_gem #{name} #{rebuilt_arguments}"
|
|
15
19
|
g_command = "cd #{name} && git add -A"
|
|
16
20
|
|
|
17
21
|
exec([b_command, p_command, g_command].join (' && '))
|
data/lib/gem_polish/version.rb
CHANGED
data/spec/gem_polish_spec.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gem_polish
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- LFDM
|
|
@@ -14,56 +14,56 @@ dependencies:
|
|
|
14
14
|
name: bundler
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - ~>
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '1.5'
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - ~>
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '1.5'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rake
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rspec
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- -
|
|
45
|
+
- - ">="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '0'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- -
|
|
52
|
+
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: thor
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '0'
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- -
|
|
66
|
+
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
69
|
description: Adds code coverage tools, badges in README, more ruby versions in travis
|
|
@@ -76,9 +76,9 @@ executables:
|
|
|
76
76
|
extensions: []
|
|
77
77
|
extra_rdoc_files: []
|
|
78
78
|
files:
|
|
79
|
-
- .gitignore
|
|
80
|
-
- .rspec
|
|
81
|
-
- .travis.yml
|
|
79
|
+
- ".gitignore"
|
|
80
|
+
- ".rspec"
|
|
81
|
+
- ".travis.yml"
|
|
82
82
|
- Gemfile
|
|
83
83
|
- LICENSE.txt
|
|
84
84
|
- README.md
|
|
@@ -105,17 +105,17 @@ require_paths:
|
|
|
105
105
|
- lib
|
|
106
106
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
|
-
- -
|
|
108
|
+
- - ">="
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
110
|
version: '0'
|
|
111
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
requirements:
|
|
113
|
-
- -
|
|
113
|
+
- - ">="
|
|
114
114
|
- !ruby/object:Gem::Version
|
|
115
115
|
version: '0'
|
|
116
116
|
requirements: []
|
|
117
117
|
rubyforge_project:
|
|
118
|
-
rubygems_version: 2.0
|
|
118
|
+
rubygems_version: 2.2.0
|
|
119
119
|
signing_key:
|
|
120
120
|
specification_version: 4
|
|
121
121
|
summary: Further polishes your bundler gem skeleton
|