editmode 0.0.9.127 → 0.0.10.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
  SHA256:
3
- metadata.gz: a22076dab92da94fd10aa66bed8b068b209dfaed6ca987dd4416ea0163f1c9ea
4
- data.tar.gz: 4ebdccd994bc194d7b9c048c496877440fc4fc233c04d94816a1570176f57f43
3
+ metadata.gz: 1dc05bbec2b009d428193136bed21d4691a02b7aa21ce14d791d0b903cc4776d
4
+ data.tar.gz: f3eccd293ed87c3f3b6755ff87bb129cdf9a202fb205d453dd968d23b97f527c
5
5
  SHA512:
6
- metadata.gz: e0b33f941380d275dc539992adfac2c58d69f3bef1ec5400b9ead3ed772c9a723aca62084108ab1ec69b04e0d6f51c5e8190a4734ef8d31d305f0c9fde1d655a
7
- data.tar.gz: 388227e2782869176578785257857edb90761fafb8ac53563047c157b1fd38385c3c6fc527afb36d050ef7b77e723f85f663f413a23a0d25a3e961713353c549
6
+ metadata.gz: 9935316b3dc3bbd2f170f1797c7b04dc1b83f23e1161ecc77a07fde824fae2fc1f0cf57742d8942fc6da1d831dc96ed1703ebfbd7dff886f0838a73adc26d7b3
7
+ data.tar.gz: d52d827d63a9db3046072c62add60d934b30833374593db1e97706b729b1b4b20cc34c17cd064d988c985df94cdac4a416451486820e11e824a0950e2359effe
@@ -1,3 +1,3 @@
1
1
  module Editmode
2
- VERSION = "0.0.9.127"
2
+ VERSION = "0.0.10.1"
3
3
  end
@@ -0,0 +1,26 @@
1
+
2
+ require 'rails/generators/base'
3
+
4
+ module Editmode
5
+ module Generators
6
+ class ConfigGenerator < Rails::Generators::Base
7
+ source_root File.expand_path("../templates", __FILE__)
8
+
9
+ argument :project_id, :desc => "Your Editmode project_id, which can be found here: https://www.editmode.com/projects"
10
+
11
+ def create_config_file
12
+ @project_id = project_id
13
+
14
+ introduction = <<-intro
15
+ Editmode will automatically insert its javascript before the closing '</body>'
16
+ tag on every page.
17
+
18
+ intro
19
+
20
+ print "#{introduction} "
21
+
22
+ template "editmode.rb.erb", "config/initializers/editmode.rb"
23
+ end
24
+ end
25
+ end
26
+ end
@@ -1,5 +1,5 @@
1
1
  Editmode.setup do |config|
2
2
  # Replace TodoProjectId with your Editmode Project ID,
3
3
  # visit https://editmode.com/projects
4
- config.project_id = TodoProjectId
4
+ config.project_id = "<%= @project_id %>"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: editmode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9.127
4
+ version: 0.0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Ennis
@@ -86,8 +86,8 @@ files:
86
86
  - lib/editmode/railtie.rb
87
87
  - lib/editmode/script_tag.rb
88
88
  - lib/editmode/version.rb
89
- - lib/generators/editmode/install_generator.rb
90
- - lib/generators/editmode/templates/editmode.rb
89
+ - lib/generators/editmode/config_generator.rb
90
+ - lib/generators/editmode/templates/editmode.rb.erb
91
91
  homepage: https://github.com/tonyennis145/editmode-rails
92
92
  licenses:
93
93
  - MIT
@@ -1,19 +0,0 @@
1
-
2
- require 'rails/generators/base'
3
-
4
- module Editmode
5
- module Generators
6
- class InstallGenerator < Rails::Generators::Base
7
- source_root File.expand_path("../templates", __FILE__)
8
-
9
- def install
10
- copy_initializer
11
- end
12
-
13
- private
14
- def copy_initializer
15
- template "editmode.rb", "config/initializers/editmode.rb"
16
- end
17
- end
18
- end
19
- end