roroacms 0.0.8.6.7 → 1.0.0
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 +4 -4
- data/README.md +12 -9
- data/app/helpers/roroacms/seo_helper.rb +10 -10
- data/lib/generators/roroacms/install_generator.rb +1 -1
- data/lib/roroacms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b861870d778dc8abd2af69162bd22245df9819f
|
|
4
|
+
data.tar.gz: 6a5e553c256432bed66392166affc7a9615b18a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c98ee2cb929f2b26d2186dd2c5ea5c1ce07aa2a5d16be1077faa00e7e4c2d7a7fc3bf81a56e46f0b0e6e2a41900d80f4e4bbeab65058ea67f26ddb7fe2f6357
|
|
7
|
+
data.tar.gz: 1769df6b5d07c2446dcc581a67ef44e9f921858bf983a4c4ea78c62e98d52f5e74e95fc2884b94ec6054782c4de6cc73e88f22eb593aff053feab33d46d4ee20
|
data/README.md
CHANGED
|
@@ -14,23 +14,26 @@ I am currently working relentlessly on creating a good demo and documentation fo
|
|
|
14
14
|
To get up and running with Roroacms in a new Rails application is simple. Just follow the
|
|
15
15
|
instructions below and you'll be up and running in minutes.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
RoroaCMS works with Rails 4 onwards. To get up and running with RoroaCMS in a new Rails application just follow the instructions below and you'll be up and running in minutes:
|
|
18
18
|
|
|
19
19
|
```ruby
|
|
20
20
|
gem 'roroacms'
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
bundle install
|
|
22
|
+
rails generate roroacms:install
|
|
23
|
+
rake assets:clean
|
|
24
|
+
rake assets:precompile
|
|
24
25
|
|
|
25
|
-
After you install Roroacms and add it to your Gemfile, you need to run the generator:
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
rails new my_web
|
|
28
|
+
cd my_web
|
|
29
|
+
echo "gem 'roroacms'
|
|
30
|
+
bundle install
|
|
28
31
|
rails generate roroacms:install
|
|
29
|
-
```
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
If you want to go straight into production mode
|
|
34
|
+
RAILS_ENV=production rake assets:clean
|
|
35
|
+
RAILS_ENV=production rake assets:precompile
|
|
32
36
|
|
|
33
|
-
```console
|
|
34
37
|
rails server
|
|
35
38
|
```
|
|
36
39
|
|
|
@@ -219,16 +219,16 @@ module Roroacms
|
|
|
219
219
|
analyticsID = Setting.get('seo_google_analytics_code')
|
|
220
220
|
if !analyticsID.blank?
|
|
221
221
|
|
|
222
|
-
analyticsCode = "<script
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
222
|
+
analyticsCode = "<script>
|
|
223
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
224
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
225
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
226
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
227
|
+
|
|
228
|
+
ga('create', '#{analyticsID}', 'auto');
|
|
229
|
+
ga('send', 'pageview');
|
|
230
|
+
|
|
231
|
+
</script>"
|
|
232
232
|
|
|
233
233
|
analyticsCode
|
|
234
234
|
end
|
data/lib/roroacms/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: roroacms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Simon Fletcher
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-10-
|
|
11
|
+
date: 2014-10-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|