axtro-roart 0.1.9 → 0.1.9.1

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.
@@ -1,6 +1,5 @@
1
1
  ==0.1.9 / 2010-05-23
2
- Removed the String/Hash extensions copied from ActiveSupport and just added a dependency on ActiveSupport. Removed to_hash added to Array, as it conflicts with ActiveSupport's deep_merge.
3
-
2
+ Removed the String/Hash extensions copied from ActiveSupport and just added a dependency on ActiveSupport. Removed to_hash added to Array, as it conflicts with ActiveSupport's deep_merge. (via hennk)
4
3
  ==0.1.8 / 2010-03-16
5
4
  Added validate presence of.
6
5
  Updated specs to test validations.
@@ -1,9 +1,11 @@
1
1
  require 'rubygems'
2
2
  require 'active_support'
3
+ require 'active_support/core_ext'
4
+
3
5
  module Roart
4
6
 
5
7
  # :stopdoc:
6
- VERSION = '0.1.8'
8
+ VERSION = '0.1.9'
7
9
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
8
10
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
9
11
  # :startdoc:
@@ -2,6 +2,7 @@ class Hash
2
2
  def to_content_format
3
3
  fields = self.map do |key,value|
4
4
  unless value.nil?
5
+ value = Roart::ContentFormatter.format_string(value.to_s)
5
6
  if key.to_s.match(/^cf_.+/)
6
7
  "CF-#{key.to_s[3..key.to_s.length].gsub(/_/, " ").camelize.humanize}: #{value}"
7
8
  else
@@ -1,24 +1,36 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.name = %q{axtro-roart}
4
+ s.name = %q{roart}
5
5
  s.version = "0.1.9"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["PJ Davis"]
9
- s.date = %q{2010-05-23}
9
+ s.date = %q{2010-09-15}
10
10
  s.description = %q{Interface for working with Request Tracker (RT) tickets inspired by ActiveRecord.}
11
11
  s.email = %q{pj.davis@gmail.com}
12
12
  s.extra_rdoc_files = ["History.txt", "README.rdoc", "spec/test_data/full_history.txt", "spec/test_data/search_ticket.txt", "spec/test_data/single_history.txt", "spec/test_data/ticket.txt"]
13
13
  s.files = ["History.txt", "README.rdoc", "Rakefile", "lib/roart.rb", "lib/roart/callbacks.rb", "lib/roart/connection.rb", "lib/roart/connection_adapter.rb", "lib/roart/connection_adapters/mechanize_adapter.rb", "lib/roart/core/hash.rb", "lib/roart/errors.rb", "lib/roart/history.rb", "lib/roart/roart.rb", "lib/roart/ticket.rb", "lib/roart/ticket_page.rb", "lib/roart/validations.rb", "roart.gemspec", "spec/roart/callbacks_spec.rb", "spec/roart/connection_adapter_spec.rb", "spec/roart/connection_spec.rb", "spec/roart/core/hash_spec.rb", "spec/roart/history_spec.rb", "spec/roart/roart_spec.rb", "spec/roart/ticket_page_spec.rb", "spec/roart/ticket_spec.rb", "spec/roart/validation_spec.rb", "spec/roart_spec.rb", "spec/spec_helper.rb", "spec/test_data/full_history.txt", "spec/test_data/search_ticket.txt", "spec/test_data/single_history.txt", "spec/test_data/ticket.txt"]
14
- s.homepage = %q{http://github.com/hennk/roart}
14
+ s.homepage = %q{http://github.com/pjdavis/roart}
15
15
  s.rdoc_options = ["--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = %q{roart}
18
- s.rubygems_version = %q{1.3.5}
18
+ s.rubygems_version = %q{1.3.7}
19
19
  s.summary = %q{Interface for working with Request Tracker (RT) tickets inspired by ActiveRecord}
20
20
 
21
- s.add_runtime_dependency(%q<mechanize>, [">= 1.0.0"])
22
- s.add_runtime_dependency(%q<activesupport>, [">= 2.0.0"])
23
- s.add_development_dependency(%q<bones>, [">= 2.5.1"])
21
+ if s.respond_to? :specification_version then
22
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
+ s.specification_version = 3
24
+
25
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
+ s.add_runtime_dependency(%q<mechanize>, [">= 1.0.0"])
27
+ s.add_development_dependency(%q<bones>, [">= 2.5.1"])
28
+ else
29
+ s.add_dependency(%q<mechanize>, [">= 1.0.0"])
30
+ s.add_dependency(%q<bones>, [">= 2.5.1"])
31
+ end
32
+ else
33
+ s.add_dependency(%q<mechanize>, [">= 1.0.0"])
34
+ s.add_dependency(%q<bones>, [">= 2.5.1"])
35
+ end
24
36
  end
@@ -12,5 +12,11 @@ describe 'hash extentions' do
12
12
  payload = {:cf_stuff => 'field'}
13
13
  payload.to_content_format.should == "CF-Stuff: field"
14
14
  end
15
-
15
+
16
+ it 'should use our content formatter for strings' do
17
+ payload = {:subject => 'A new ticket', :queue => 'My queue', :text => "A text"}
18
+ Roart::ContentFormatter.should_receive(:format_string).at_least(:once)
19
+ payload.to_content_format
20
+ end
21
+
16
22
  end
metadata CHANGED
@@ -1,13 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: axtro-roart
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 1
9
- - 9
10
- version: 0.1.9
4
+ version: 0.1.9.1
11
5
  platform: ruby
12
6
  authors:
13
7
  - PJ Davis
@@ -15,57 +9,29 @@ autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
11
 
18
- date: 2010-05-23 00:00:00 +02:00
12
+ date: 2010-09-15 00:00:00 +02:00
19
13
  default_executable:
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
22
16
  name: mechanize
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 23
30
- segments:
31
- - 1
32
- - 0
33
- - 0
34
- version: 1.0.0
35
17
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: activesupport
39
- prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
42
20
  requirements:
43
21
  - - ">="
44
22
  - !ruby/object:Gem::Version
45
- hash: 15
46
- segments:
47
- - 2
48
- - 0
49
- - 0
50
- version: 2.0.0
51
- type: :runtime
52
- version_requirements: *id002
23
+ version: 1.0.0
24
+ version:
53
25
  - !ruby/object:Gem::Dependency
54
26
  name: bones
55
- prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
58
30
  requirements:
59
31
  - - ">="
60
32
  - !ruby/object:Gem::Version
61
- hash: 25
62
- segments:
63
- - 2
64
- - 5
65
- - 1
66
33
  version: 2.5.1
67
- type: :development
68
- version_requirements: *id003
34
+ version:
69
35
  description: Interface for working with Request Tracker (RT) tickets inspired by ActiveRecord.
70
36
  email: pj.davis@gmail.com
71
37
  executables: []
@@ -112,7 +78,7 @@ files:
112
78
  - spec/test_data/single_history.txt
113
79
  - spec/test_data/ticket.txt
114
80
  has_rdoc: true
115
- homepage: http://github.com/hennk/roart
81
+ homepage: http://github.com/axtro/roart
116
82
  licenses: []
117
83
 
118
84
  post_install_message:
@@ -122,27 +88,21 @@ rdoc_options:
122
88
  require_paths:
123
89
  - lib
124
90
  required_ruby_version: !ruby/object:Gem::Requirement
125
- none: false
126
91
  requirements:
127
92
  - - ">="
128
93
  - !ruby/object:Gem::Version
129
- hash: 3
130
- segments:
131
- - 0
132
94
  version: "0"
95
+ version:
133
96
  required_rubygems_version: !ruby/object:Gem::Requirement
134
- none: false
135
97
  requirements:
136
98
  - - ">="
137
99
  - !ruby/object:Gem::Version
138
- hash: 3
139
- segments:
140
- - 0
141
100
  version: "0"
101
+ version:
142
102
  requirements: []
143
103
 
144
104
  rubyforge_project: roart
145
- rubygems_version: 1.3.7
105
+ rubygems_version: 1.3.5
146
106
  signing_key:
147
107
  specification_version: 3
148
108
  summary: Interface for working with Request Tracker (RT) tickets inspired by ActiveRecord