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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjYwZmMzMzU5N2FkODlkYWZjYTQ5ZTk2OGU1MzY4ZDFmNDVlOWI4MQ==
4
+ MTNiOWUwNjZlNDBjNjZlOThlNmMyN2NjODEyNTJkZmY0ZmRhYTliMQ==
5
5
  data.tar.gz: !binary |-
6
- YzhkYWM4M2ZlMDk0ZDFiZDMwOTllMzZkNjQyOWFlODZkMmZkNDllOQ==
6
+ YzJkYWViNDM0MTRiMmY5Mzk2MjJkMmQ3ZTRjZjIyZjA5ZTk0ODcyNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDEwYTc1NDcxNjZjNDBlNTMzNWYxYWU0NmY3NmVmMDAxNDRkM2M3ZjY2NGEw
10
- YTIyZTJhZjQ0NmY2ZDczYzllNmQ4YjI1M2I2YjkyYTAwYTZlNTI5ZjJmYjUw
11
- MmU0MmUyZWJjNmZmZWFkYTU4YmMyOGNjZmQxNTUwZTcwN2QzZTU=
9
+ NjNhMDQ5NjE2NjYzYzM4MzVjMjAwYTEwODIwYWQ5OGYzZTQ3MmJmY2RkNTBi
10
+ YzY0YTA4MzQ5MWVkMTkxMzRhNTJhOGVhNjMzNGEwMTZjYTIzNmNjMTQ4MDRm
11
+ YTUwNzNjMGNhYzU0YzgyYjIxNmViZTMzYzU2NWI4ZDU1ODNmMjI=
12
12
  data.tar.gz: !binary |-
13
- N2M4ZTNkOWZiMzQxNTVkYmEwNjljNTNlZDk1ZTZiMTkzMGJjMGU1OTkwOTE3
14
- ZmU3MDA1N2FiYTY1YjBhNzBjMDExNTlkYTBhNWQ0OThiNTk2NTcyYmQ3YzYy
15
- ZTFhNzAzZTY1MTFkZmRmZjBiOGNkNTU3MTg1MGRjZDhkMDMwOWY=
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/rspec_helper'"
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]
@@ -1,5 +1,5 @@
1
- require 'envelope'
2
- require 'action'
1
+ require_relative 'envelope'
2
+ require_relative 'action'
3
3
  require 'rspec/expectations'
4
4
 
5
5
  module CulpaHelpers
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
- require 'envelope'
7
- require 'path_parser'
8
- require 'file_streamer'
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/envelope.rb
66
- - lib/file_streamer.rb
67
- - lib/path_parser.rb
68
- - lib/rspec_helper.rb
69
- - templates/Dockerfile
70
- - templates/Gemfile
71
- - templates/config.ru
72
- - templates/generators/action.tmpl
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