skellington 0.2.1 → 0.2.2

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: 18f8f79212fefad2aa8b9260012b977ebdfa3613
4
- data.tar.gz: ef93defe1c30b340f7f79005bda54ff2729b5970
3
+ metadata.gz: e73a864def7705c0498bfa5132a9040690b494a2
4
+ data.tar.gz: 791371bf276721499f87a9914e292cf930f8eb95
5
5
  SHA512:
6
- metadata.gz: ff9429230b70602638144189b9f8dc3cea3cdfb93169220783532bcbe53358c8c5da9ce35f87ff18dd8ed171f0448568bd656e442e1d87de1a02760470a612d1
7
- data.tar.gz: 49b7a657a9292825322660104939db078369a49b1c9a1036c8c52ccca12f32f8bfc5178114b621da8c4998b4cce476e2db8f714e43fd5a7afd596ab26a9ba8a2
6
+ metadata.gz: 200c6b249468816d5550d7ea3bab8820c9b64c6739a4e4be061eb25674de588ca8b79245ab714b85ef7d52484deb662e76c6eab12eb5e1e37423efb7f5b77e37
7
+ data.tar.gz: df949ef150a09b672830fee0956cbd77ddf641a64fb14457de8821feff673a9b265073ded3d7cd5e8db2f71164e0adc1fb64e7c9277d2bab409c2faeeb4fcda1
data/README.md CHANGED
@@ -43,4 +43,4 @@ This assumes a bunch of things, at least:
43
43
 
44
44
  * That you have a reasonable git installation
45
45
 
46
- Also, it will set up the new project using whatever version of ruby is cromulent when you run it
46
+ Also, it will set up the new project using whatever version of ruby is cromulent when you run it. And it will replace any '-'s in your project name with '_'s.
@@ -0,0 +1,6 @@
1
+ Feature: Fix app_name
2
+
3
+ Scenario: App name does not like a hyphen
4
+ When I successfully run `skellington generate hyphenated-name`
5
+ Then a directory named "hyphenated_name/lib/" should exist
6
+ And a file named "hyphenated_name/lib/hyphenated_name.rb" should exist
@@ -4,7 +4,7 @@ module Skellington
4
4
 
5
5
  def initialize path
6
6
  @path = File.dirname path
7
- @wormname = File.basename path
7
+ @wormname = File.basename(path).gsub('-', '_')
8
8
  @camelname = Skellington.camelise(@wormname)
9
9
  @gems = config['gems']
10
10
  @files = config['files']
@@ -1,3 +1,3 @@
1
1
  module Skellington
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skellington
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - pikesley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-21 00:00:00.000000000 Z
11
+ date: 2015-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -178,7 +178,6 @@ files:
178
178
  - Gemfile
179
179
  - Guardfile
180
180
  - LICENSE.md
181
- - LICENSE.txt
182
181
  - README.md
183
182
  - Rakefile
184
183
  - bin/skellington
@@ -189,6 +188,7 @@ files:
189
188
  - features/cukes.feature
190
189
  - features/gemfile.feature
191
190
  - features/git.feature
191
+ - features/naming.feature
192
192
  - features/non-local-path.feature
193
193
  - features/procfile.feature
194
194
  - features/rakefile.feature
@@ -243,6 +243,7 @@ test_files:
243
243
  - features/cukes.feature
244
244
  - features/gemfile.feature
245
245
  - features/git.feature
246
+ - features/naming.feature
246
247
  - features/non-local-path.feature
247
248
  - features/procfile.feature
248
249
  - features/rakefile.feature
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2015 pikesley
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.