acronos_poc 0.1.0 → 0.1.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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c374c445c86aabd997736f5ab108d80fa79755b
4
- data.tar.gz: 7f2f7ec3ef26dec46287b8a39928930ba05acce9
3
+ metadata.gz: d10a326b993ce7a3fd954bd8984edde92ed65d9e
4
+ data.tar.gz: cd16fcea67b881ac3b0a725197f541d42ddedae8
5
5
  SHA512:
6
- metadata.gz: 1fbae6a6ac274f054f4c9de0ff708be3501669ac9d8effdbea5e4adcdc1bfcf32e1d5e19afed4bc13ff4d183effa16581c480ebd7c99face17a7ba1a977a6577
7
- data.tar.gz: 4adeab8b4f36da056ee947e262953549ea8213466d8ef7c2977a72652b1521db969e031f915ac9b5cc37e61f78d118b014a5717b63ac2dacad4f3adb1810fda4
6
+ metadata.gz: 5d02fdb3c552737c0e7c3a4fa209febd4795607ad28883e732ee17e81e03cd783791605b50868270dfcd38693527cd71e46f0aae077d49116417c9b8cbb0af7b
7
+ data.tar.gz: f7c20eb2a24f5f8301fb268e031dab184d2cce5c41f99b8fade96436ba08cad4ce3bc7a3eab2b3fdd23b5fa3548d9ad487902be8dbb224445f13deb3261141d0
Binary file
@@ -1,3 +1,3 @@
1
1
  module AcronosPoc
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -1,5 +1,11 @@
1
1
  require 'rails/generators/base'
2
2
 
3
- class AcronosPocGenerator < Rails::Generators::NamedBase
3
+ class AcronosPocGenerator < Rails::Generators::Base
4
4
  source_root File.expand_path('../templates', __FILE__)
5
+ argument :controller, type: :string
6
+ argument :method, type: :string, default: "index"
7
+
8
+ def generate_view
9
+ template "#{method}.html.erb", "app/views/#{controller}/#{method}.html.erb"
10
+ end
5
11
  end
@@ -0,0 +1,3 @@
1
+ <h1>Hello world from the generator</h1>
2
+ Controller is <%%= controller %>
3
+ Method is <%%= method %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acronos_poc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Le Thiec
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-07 00:00:00.000000000 Z
11
+ date: 2017-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -65,6 +65,7 @@ files:
65
65
  - Gemfile
66
66
  - README.md
67
67
  - Rakefile
68
+ - acronos_poc-0.1.0.gem
68
69
  - acronos_poc.gemspec
69
70
  - bin/console
70
71
  - bin/setup
@@ -72,6 +73,7 @@ files:
72
73
  - lib/acronos_poc/version.rb
73
74
  - lib/generators/acronos_poc/USAGE
74
75
  - lib/generators/acronos_poc/acronos_poc_generator.rb
76
+ - lib/generators/acronos_poc/templates/index.html.erb
75
77
  homepage:
76
78
  licenses: []
77
79
  metadata: {}