culpa 0.7.3 → 0.7.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 +8 -8
- data/bin/culpa +10 -3
- data/lib/culpa.rb +1 -1
- data/templates/generators/action.tmpl +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGM3ZDcyZjEwMDFlNjUxODkxNmM1ZmFmNGUzZjE0M2RhMGJlMTFjOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTRmMDY4ZjFjNmZkZjYwMTg4MDQyNmM4ZGM0NWYxZGExYjlmYjc4Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjZhNGZhODAxNmYwNGIxMjZjMzllMjBhMDY0MTUzMTk2ZDk3NDM5MjBlNmU2
|
10
|
+
MGFiN2EyM2M3ZDFlNThhZTE1ZDQ1ZWUwMTcwNGY1M2EyZDg2ZmNjNmVjYTFh
|
11
|
+
ZTc3NWYxMDFlMWU3OGFhNDY0NDZmMTE5N2I1M2E4OGUxYTMyZGQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGQ3MjAwMTZjODAyOTc1OWIxNDMxYjY4MjVmNmNhMGMyZDgyZDIyNDI5OTBl
|
14
|
+
Mzg5MDM2NTJkNmJlN2ZlYjE4YmRhZmY3NmIxZWM5M2VlNmUwNTA1ZjY0Yjky
|
15
|
+
ZDM0OTUzM2I1NGQyNjBjNDE1ODY5YTA3MDY5MDRkYTk5Mzc3MWI=
|
data/bin/culpa
CHANGED
@@ -67,7 +67,7 @@ def display_help
|
|
67
67
|
puts ' - console : Drops an interactive shell within the running directory'
|
68
68
|
puts ' - server : Starts the web server'
|
69
69
|
puts ' - generate : '
|
70
|
-
puts ' - action [
|
70
|
+
puts ' - action [action_name] [brick_a brick_b ...] : Creates an action'
|
71
71
|
puts ' - spec : Creates a spec'
|
72
72
|
puts ''
|
73
73
|
puts 'This software is distributed under the MIT license, available here : '
|
@@ -76,10 +76,17 @@ def display_help
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def generate_action
|
79
|
-
erb_template = File.read(
|
80
|
-
|
79
|
+
erb_template = File.read(
|
80
|
+
File.join(
|
81
|
+
File.dirname(__FILE__), '../templates/generators/action.tmpl'
|
82
|
+
)
|
83
|
+
)
|
84
|
+
@snake_name = ARGV[2]
|
85
|
+
@name = ARGV[2].split('_').map{|w| w.capitalize}.join
|
81
86
|
@bricks = ARGV.drop(3)
|
82
87
|
rendered_action = ERB.new(erb_template).result
|
88
|
+
action_file = "./actions/#{@snake_name}.rb"
|
89
|
+
File.write(action_file, rendered_action)
|
83
90
|
end
|
84
91
|
|
85
92
|
def start_server
|
data/lib/culpa.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: culpa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jérémy SEBAN
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|