gdocs_features 0.2.0 → 0.3.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.
data/README CHANGED
@@ -0,0 +1,5 @@
1
+ In order for non-technical stakeholders to specify user stories
2
+ As a developer
3
+ I want to merge in features from Google docs
4
+
5
+ $ remotefeatures LOCAL_FEATURES_DIR "google.username:password@gmail-or-google-apps_domain.com"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gdocs_features}
8
- s.version = "0.2.0"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Josh Chisholm"]
@@ -42,6 +42,7 @@ Gem::Specification.new do |s|
42
42
  "lib/remote_features/cli/main.rb",
43
43
  "lib/remote_features/dialogue.rb",
44
44
  "pkg/gdocs_features-0.1.0.gem",
45
+ "pkg/gdocs_features-0.2.0.gem",
45
46
  "spec/cli_spec.rb",
46
47
  "spec/dialogue_spec.rb",
47
48
  "spec/feature_diff_spec.rb",
@@ -32,8 +32,10 @@ class GoogleFeature < Feature
32
32
  end
33
33
 
34
34
  def remove_html(html_body)
35
- text = Nokogiri::HTML(html_body).at('body').inner_html
36
- text.gsub("&nbsp;", " ").gsub(/\xa0/, " ").gsub("<br>", "\n").gsub("\n\n", "\n").gsub(/<\/?[^>]*>/, "")
35
+ text = Nokogiri::HTML(html_body).at('body').inner_text
36
+ text.gsub!("\xc2\xa0", "")
37
+ text.gsub!("\n{2,}", "\n")
38
+ text
37
39
  end
38
40
 
39
41
  def underscore(camel_cased_word)
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 2
7
+ - 3
8
8
  - 0
9
- version: 0.2.0
9
+ version: 0.3.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Josh Chisholm
@@ -51,6 +51,7 @@ files:
51
51
  - lib/remote_features/cli/main.rb
52
52
  - lib/remote_features/dialogue.rb
53
53
  - pkg/gdocs_features-0.1.0.gem
54
+ - pkg/gdocs_features-0.2.0.gem
54
55
  - spec/cli_spec.rb
55
56
  - spec/dialogue_spec.rb
56
57
  - spec/feature_diff_spec.rb