ragadjust 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 8b9adc04576f171cf9c4c6083dd77cb3a4c6405c
4
- data.tar.gz: ccb09b86ef96d2fedcd1c7ddc67e13e08ecdc6ae
3
+ metadata.gz: 3bbf9e62927430d5253c5834584e1cd5ad4550ed
4
+ data.tar.gz: e0b82376110a9f865e3896127f1222e8f584d36b
5
5
  SHA512:
6
- metadata.gz: da9ca50b1b6138c211ec192d52177b79a9b8cd894d6d2f6294e4dc0dc25b70a819fff2e06b16a0c215a353817771afbe85c8b800c48d6459afe44168575bc6a1
7
- data.tar.gz: ea343d4ce197007782587202f8e80860df02769f9cfb1e4a7303d478d92b77f43c3114cdb4681532e062e30e85252feac5cfae998fdb63a2da690a1755b5450e
6
+ metadata.gz: 84db675a642cdcfbe6a207cbb7fb8dff0b832928e493d3c4d411ad897716b318be51c753fedd7603bd64226521b9073e6be7dc0fd45572368cdb61df9018b36e
7
+ data.tar.gz: 4a61738a41a2ccbd5061412dea7e3fc5dc48e8e8288122c544f586c349293fe934565e6a4b2a51e0af6a063852d5227c59b191b35ee99b02fb6aac42e908d24c
data/README.md CHANGED
@@ -6,7 +6,7 @@ Gem to rag-adjust text content based on Mark Boulton's 24ways article: http://24
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'ragadjust', github: 'aperfect/ragadjust'
9
+ gem 'ragadjust'
10
10
 
11
11
  And then execute:
12
12
 
@@ -18,7 +18,7 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- Ragadjust::Adjust.ragadjust_content(text_to_adjust, selector, method = 'all')
21
+ Ragadjust::Adjust.ragadjust_content(text_to_adjust, selector, method)
22
22
 
23
23
  `selector` takes a CSS selector and defaults to:
24
24
 
@@ -39,3 +39,6 @@ Or install it yourself as:
39
39
  3. Commit your changes (`git commit -am 'Add some feature'`)
40
40
  4. Push to the branch (`git push origin my-new-feature`)
41
41
  5. Create a new Pull Request
42
+
43
+
44
+ Questions or suggestions, please email github@adamperfect.com
@@ -52,7 +52,7 @@ module Ragadjust
52
52
  # Get text nodes
53
53
  el.search('//text()').each do |n|
54
54
  if n.text?
55
- Ragadjust::Adjust.text_node_replace n, /\s+/, nbsp
55
+ n.gsub /\s+/, nbsp
56
56
  end
57
57
  end
58
58
  end
@@ -1,3 +1,3 @@
1
1
  module Ragadjust
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ragadjust
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Perfect