culpa 1.0.0 → 1.0.0.1
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 +5 -5
- data/lib/{rspec_helper.rb → culpa/test_helpers.rb} +2 -2
- data/lib/culpa.rb +6 -5
- data/templates/culpa/logo.png +0 -0
- metadata +11 -10
- /data/lib/{action.rb → culpa/action.rb} +0 -0
- /data/lib/{envelope.rb → culpa/envelope.rb} +0 -0
- /data/lib/{file_streamer.rb → culpa/file_streamer.rb} +0 -0
- /data/lib/{path_parser.rb → culpa/path_parser.rb} +0 -0
- /data/templates/{Dockerfile → culpa/Dockerfile} +0 -0
- /data/templates/{Gemfile → culpa/Gemfile} +0 -0
- /data/templates/{config.ru → culpa/config.ru} +0 -0
- /data/templates/{generators → culpa/generators}/action.tmpl +0 -0
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTNiOWUwNjZlNDBjNjZlOThlNmMyN2NjODEyNTJkZmY0ZmRhYTliMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzJkYWViNDM0MTRiMmY5Mzk2MjJkMmQ3ZTRjZjIyZjA5ZTk0ODcyNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjNhMDQ5NjE2NjYzYzM4MzVjMjAwYTEwODIwYWQ5OGYzZTQ3MmJmY2RkNTBi
|
10
|
+
YzY0YTA4MzQ5MWVkMTkxMzRhNTJhOGVhNjMzNGEwMTZjYTIzNmNjMTQ4MDRm
|
11
|
+
YTUwNzNjMGNhYzU0YzgyYjIxNmViZTMzYzU2NWI4ZDU1ODNmMjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjdkMDM0NTQzMmEzMGM2OTJlYTQ5MmJkODc3NTJkYjhhYmMxM2FmOWMyY2E4
|
14
|
+
NDQ3ZjM3MTMyMDFjOTg0NGYxZjdiYzMzMzAxODBjZjgxZTgwMzAwZTNlMzY2
|
15
|
+
ZmVhZThkNGMwNzRiMjNmNWJiNzU5YTg3YmQ1ZDA5YWJiYWZmNzk=
|
data/bin/culpa
CHANGED
@@ -25,15 +25,15 @@ def create_project(project_path)
|
|
25
25
|
FileUtils.touch "#{project_path}/config/initializers/.keep"
|
26
26
|
|
27
27
|
puts '==> Copying standard gemfile'
|
28
|
-
gemfile_path = File.join( File.dirname(__FILE__), '../templates/Gemfile' )
|
28
|
+
gemfile_path = File.join( File.dirname(__FILE__), '../templates/culpa/Gemfile' )
|
29
29
|
FileUtils.cp gemfile_path, "#{project_path}/Gemfile"
|
30
30
|
|
31
31
|
puts '==> Copying standard config.ru'
|
32
|
-
config_rackup_path = File.join( File.dirname(__FILE__), '../templates/config.ru' )
|
32
|
+
config_rackup_path = File.join( File.dirname(__FILE__), '../templates/culpa/config.ru' )
|
33
33
|
FileUtils.cp config_rackup_path, "#{project_path}/config.ru"
|
34
34
|
|
35
35
|
puts '==> Copying Dockerfile'
|
36
|
-
dockerfile_rackup_path = File.join( File.dirname(__FILE__), '../templates/Dockerfile' )
|
36
|
+
dockerfile_rackup_path = File.join( File.dirname(__FILE__), '../templates/culpa/Dockerfile' )
|
37
37
|
FileUtils.cp dockerfile_rackup_path, "#{project_path}/Dockerfile"
|
38
38
|
|
39
39
|
puts '==> Switching to project directory'
|
@@ -50,7 +50,7 @@ def create_project(project_path)
|
|
50
50
|
spec_helper_path_tmp = spec_helper_path + '.new'
|
51
51
|
File.open(spec_helper_path_tmp, 'w') do |fo|
|
52
52
|
fo.puts "require 'culpa'"
|
53
|
-
fo.puts "require 'culpa/
|
53
|
+
fo.puts "require 'culpa/test_helpers'"
|
54
54
|
File.foreach(spec_helper_path) do |li|
|
55
55
|
fo.puts li
|
56
56
|
fo.puts " config.include CulpaHelpers" if li == "=end\n"
|
@@ -79,7 +79,7 @@ end
|
|
79
79
|
def generate_action
|
80
80
|
erb_template = File.read(
|
81
81
|
File.join(
|
82
|
-
File.dirname(__FILE__), '../templates/generators/action.tmpl'
|
82
|
+
File.dirname(__FILE__), '../templates/culpa/generators/action.tmpl'
|
83
83
|
)
|
84
84
|
)
|
85
85
|
@snake_name = ARGV[2]
|
data/lib/culpa.rb
CHANGED
@@ -1,13 +1,14 @@
|
|
1
|
+
require 'rubygems'
|
1
2
|
require 'bundler'
|
2
3
|
require 'json'
|
3
4
|
require 'yaml'
|
4
5
|
require 'logger'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
7
|
+
require_relative 'culpa/envelope'
|
8
|
+
require_relative 'culpa/path_parser'
|
9
|
+
require_relative 'culpa/file_streamer'
|
9
10
|
|
10
|
-
CULPA_VERSION='1.0.0'
|
11
|
+
CULPA_VERSION='1.0.0.1'
|
11
12
|
|
12
13
|
ACTIONS_PATH ||= './actions/*.rb'
|
13
14
|
MODELS_PATH ||= './models/*.rb'
|
@@ -18,7 +19,7 @@ Dir[INITIALIZERS_PATH].each do |file|
|
|
18
19
|
end
|
19
20
|
|
20
21
|
module Actions
|
21
|
-
require 'action'
|
22
|
+
require 'culpa/action'
|
22
23
|
Dir[ACTIONS_PATH].each do |file|
|
23
24
|
require file
|
24
25
|
end
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: culpa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jérémy SEBAN
|
@@ -60,16 +60,17 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- bin/culpa
|
63
|
-
- lib/action.rb
|
64
63
|
- lib/culpa.rb
|
65
|
-
- lib/
|
66
|
-
- lib/
|
67
|
-
- lib/
|
68
|
-
- lib/
|
69
|
-
-
|
70
|
-
- templates/
|
71
|
-
- templates/
|
72
|
-
- templates/
|
64
|
+
- lib/culpa/action.rb
|
65
|
+
- lib/culpa/envelope.rb
|
66
|
+
- lib/culpa/file_streamer.rb
|
67
|
+
- lib/culpa/path_parser.rb
|
68
|
+
- lib/culpa/test_helpers.rb
|
69
|
+
- templates/culpa/Dockerfile
|
70
|
+
- templates/culpa/Gemfile
|
71
|
+
- templates/culpa/config.ru
|
72
|
+
- templates/culpa/generators/action.tmpl
|
73
|
+
- templates/culpa/logo.png
|
73
74
|
homepage: http://culpaframework.org/
|
74
75
|
licenses:
|
75
76
|
- MIT
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|