sape 0.0.5 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cfdd5187a84c1ef29fb0f5224a225092e9816b2
4
- data.tar.gz: b9bb5c6aa3875b697b78f2b87df1421bea2d3a7e
3
+ metadata.gz: 7cf41e8bbcbf6f252995ea6e3ca4d04f8b498306
4
+ data.tar.gz: d28364816cb4d298ac20c2911b49260178f491b9
5
5
  SHA512:
6
- metadata.gz: e5defda0b4dbe9a084c4a214e8b8937967a6225e31417e048d65a1bd7e87f3f13cd89c865ab0e681ebd941880dc8a293ce4d0cabbd39ab04964ebfa2e0c48781
7
- data.tar.gz: c90da6f6b3bec731e6df5b44b100173cfe01d91fbf98149b873fc10cb2e3215dc00da2d60f896cd50c0479f886a8ff92ab9d81b38e477c58b008069a75900cc7
6
+ metadata.gz: c58c23ec63d05836eade6081103b4bae4e167f2eef9b96b0b497214def5c7e9580999f00754cc8a2515161367d4f748b4756d372dcfdfac099202bccd1d8c112
7
+ data.tar.gz: b0e6b639de30000850cf8739aa3fe1df5e80615dfc0776567fa8b70f507b75274d6aba97eaec9f6ebea484a5f9dcca08135d1180344761934b1498038ba222f9
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  ##Sape gem for Ruby On Rails
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/sape.png)](http://badge.fury.io/rb/sape)
4
- [![Build Status](https://travis-ci.org/iRet/sape.png?branch=master)](https://travis-ci.org/iRet/sape)
4
+ [![Build Status](https://travis-ci.org/krim/sape.svg?branch=master)](https://travis-ci.org/iRet/sape)
5
5
 
6
6
  ###Rewritten from scratch
7
7
 
8
8
  ### Changes
9
- * parsing xml file instead of php serialized string
9
+ * parsing json file instead of php serialized string
10
10
  * storing in database instead of text file
11
11
  * requesting by rake task instead of checking on every page load
12
12
  * customizable rails friendly erb templates
@@ -46,7 +46,8 @@ Run it by cron or use whenever gem or something other way you like.
46
46
 
47
47
  #### Customizing templates (optional)
48
48
  * `rails g sape:views`
49
- * add `*= require sape` to application.css for block links
49
+ * run `rails g sape:install` to add sape.css to yours app/assets/stylesheets for block links
50
+
50
51
 
51
52
  Templates will be copied to views/sape folder.
52
53
 
@@ -0,0 +1,13 @@
1
+ require 'rails/generators'
2
+
3
+ module Sape
4
+ class InstallGenerator < ::Rails::Generators::Base
5
+ source_root File.expand_path("../../../app/assets/stylesheets", __FILE__)
6
+ desc "This generator installs Sape to Asset Pipeline"
7
+
8
+ def add_assets
9
+ copy_file 'sape.css', 'app/assets/stylesheets/sape.css'
10
+ end
11
+
12
+ end
13
+ end
data/lib/sape/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sape
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sape
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Rodionov
@@ -211,6 +211,7 @@ files:
211
211
  - lib/app/models/sape_link.rb
212
212
  - lib/app/views/sape/_link.html.erb
213
213
  - lib/app/views/sape/links.html.erb
214
+ - lib/generators/sape/install_generator.rb
214
215
  - lib/generators/sape/migration_generator.rb
215
216
  - lib/generators/sape/templates/migration.rb
216
217
  - lib/generators/sape/views_generator.rb