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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dc05bbec2b009d428193136bed21d4691a02b7aa21ce14d791d0b903cc4776d
|
4
|
+
data.tar.gz: f3eccd293ed87c3f3b6755ff87bb129cdf9a202fb205d453dd968d23b97f527c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9935316b3dc3bbd2f170f1797c7b04dc1b83f23e1161ecc77a07fde824fae2fc1f0cf57742d8942fc6da1d831dc96ed1703ebfbd7dff886f0838a73adc26d7b3
|
7
|
+
data.tar.gz: d52d827d63a9db3046072c62add60d934b30833374593db1e97706b729b1b4b20cc34c17cd064d988c985df94cdac4a416451486820e11e824a0950e2359effe
|
data/lib/editmode/version.rb
CHANGED
@@ -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
|
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.
|
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/
|
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
|