trustlink 0.0.4 → 0.0.5

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: e157417462bdd92d4e49bb88cdb5bd08eeb239db
4
- data.tar.gz: 7dcfbab178cd6877a26a0e7afa9b08c4ada22dab
3
+ metadata.gz: 7cc17f6bcbffbc31dae6a34cdddaa16eb55f7c11
4
+ data.tar.gz: 9dcdc6a40c5ed12fde7cd6b95c0c5540612292a3
5
5
  SHA512:
6
- metadata.gz: 72f5c1e2d6a31015da79feff594588e66a322cf22605d5c89290e964511c7e87b82e9bae254383dd1790315e407dae303584a84e01442a1ec5d7b4fd432b299d
7
- data.tar.gz: 43177aab53f6a65f59048880db6df9a2397fd0a9580bdf5f0228fc7b28bb7b1895990e37dc9c911656643050ded255ad8dd8be10fb420c43020f297cfdd18f1e
6
+ metadata.gz: 7d23d5e5b01ccebb89e3c7948924f4a4113749dcf3200ce6bebf30e8e148a2e620cc75a0f1b7e4aff6550a988fdff476c538d738ed006d3c3502c3f6b3d9f6a8
7
+ data.tar.gz: 1823c68a4777d81909e0b2f868197f6738d185e69583d4d848db7ceceaa7c4eac49cc7578d54a1d8761014538a7b0f6baea2dbebec33ac64d76ea63166963d2f
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ##Trustlink module for Ruby On Rails
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/trustlink.png)](http://badge.fury.io/rb/trustlink)
4
+ [![Build Status](https://travis-ci.org/iRet/trustlink.png?branch=master)](https://travis-ci.org/iRet/trustlink)
5
+
3
6
  ###Rewritten from scratch
4
7
 
5
8
  ### Changes
@@ -14,11 +17,11 @@ Include the gem in your Gemfile:
14
17
  gem "trustlink"
15
18
  ```
16
19
 
17
- #### preparing db
20
+ #### Preparing db
18
21
  * `rails g trustlink:migration`
19
22
  * `rake db:migrate`
20
23
 
21
- #### generating config
24
+ #### Generating config
22
25
  * create config/trustlink.yml
23
26
  ```yml
24
27
  key: _YOUR_TRUSTLINK_HASH_
@@ -26,18 +29,24 @@ domain: example.com
26
29
  encoding: UTF-8
27
30
  ```
28
31
 
29
- #### customizing templates (optional)
30
- * `rails g trustlink:views`
31
- Templates will be copied to views/trustlink folder.
32
+ #### Inserting links
33
+ Simply put helper call in desired place. Like this:
34
+ ```ruby
35
+ <%= trustlink_links -%>
36
+ ```
32
37
 
33
- #### fetching links
38
+ #### Fetching links
34
39
  * `rake trustlink:fetch`
35
40
  Run it by cron or use whenever gem or something other way you like.
36
41
 
42
+ #### Customizing templates (optional)
43
+ * `rails g trustlink:views`
44
+ Templates will be copied to views/trustlink folder.
45
+
37
46
  ### Notes
38
47
  * In _link.html.erb first and last string inserting trustlink code recognized by trustlink bots. It should not be removed. Also important to levae url untouched.
39
48
  * By default no style included. You can use styles extracted from trustlink's template. Just replace class to 'ads' used by default or use your own.
40
- * Multi-domain feature currently not supported. Ask if you need.
49
+ * Multi-domain feature currently not supported. Ask if you need this feature.
41
50
 
42
51
  For more information please follow http://www.trustlink.ru/
43
52
 
@@ -2,7 +2,7 @@ require 'domainatrix'
2
2
 
3
3
  module TrustlinkHelper
4
4
  def trustlink_links
5
- options = { links: TrustlinkLink.where(page: request.path) }
5
+ options = { links: TrustlinkLink.where(page: request.original_fullpath) }
6
6
  if TrustlinkConfig.bot_ips.include?(request.remote_addr)
7
7
  options.merge!(start: TrustlinkConfig.start_code)
8
8
  options.merge!(stop: TrustlinkConfig.stop_code)
@@ -1,3 +1,3 @@
1
1
  module Trustlink
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trustlink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artyom Nikolaev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-14 00:00:00.000000000 Z
11
+ date: 2014-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -122,7 +122,7 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- description: Trustlink.ru integration.
125
+ description: Trustlink.ru links exchange system integration
126
126
  email:
127
127
  - artyom@a22.in
128
128
  executables: []
@@ -166,5 +166,5 @@ rubyforge_project:
166
166
  rubygems_version: 2.2.0
167
167
  signing_key:
168
168
  specification_version: 4
169
- summary: Trustlink Ruby On Rails module.
169
+ summary: Trustlink.ru Ruby On Rails module
170
170
  test_files: []