zenpush 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8741cba882af05e6719cd6b061281166e9f2267f
4
+ data.tar.gz: c473f3087f3eaf79c217dfd595a938b5f1ef99ec
5
+ SHA512:
6
+ metadata.gz: 16c42fea272f5c665af6cff230a1d3f45322ec15df4d9354bbcb56c12a5ba33be4d9d8f3673888524cee4791f8eac0fe033d0f8439c00b8f1877d8ecef431d0c
7
+ data.tar.gz: fbab456576ed67ea8d4c7127b5d3d4de8a2445aa607e9bc01fd498831decd9698a8a6af58f79effe4ae2b51616e10f9a048f2d7a0e1f39853394f4427fdd4fe4
data/History.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.1
2
+
3
+ * Bugfix: Finding a forum by name is scoped to the category. ([alexkwolfe](https://github.com/alexkwolfe))
4
+
1
5
  ## 0.3.0
2
6
 
3
7
  * [GitHub Flavored Markdown](https://help.github.com/articles/github-flavored-markdown) support, with the `-F github` option. ([alexkwolfe](https://github.com/alexkwolfe))
@@ -1,4 +1,4 @@
1
1
  # encoding: UTF-8
2
2
  module ZenPush
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
@@ -102,7 +102,7 @@ module ZenPush
102
102
  def find_forum(category_name, forum_name, options = {})
103
103
  category = self.find_category(category_name, options)
104
104
  if category
105
- self.forums.detect {|f| f['name'] == forum_name}
105
+ self.forums.detect {|f| f['category_id'] == category['id'] && f['name'] == forum_name }
106
106
  end
107
107
  end
108
108
 
@@ -110,7 +110,7 @@ module ZenPush
110
110
  def find_or_create_forum(category_name, forum_name, options={ })
111
111
  category = self.find_or_create_category(category_name, options)
112
112
  if category
113
- self.forums.detect { |f| f['name'] == forum_name } || post_forum(category['id'], forum_name)
113
+ self.forums.detect { |f| f['category_id'] == category['id'] && f['name'] == forum_name } || post_forum(category['id'], forum_name)
114
114
  end
115
115
  end
116
116
 
metadata CHANGED
@@ -1,128 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zenpush
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.3.0
4
+ version: 0.3.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Nicolas Fouché
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-08 00:00:00.000000000 Z
11
+ date: 2013-06-26 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- version_requirements: !ruby/object:Gem::Requirement
14
+ name: boson
15
+ requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
- none: false
21
- name: boson
22
20
  type: :runtime
23
21
  prerelease: false
24
- requirement: !ruby/object:Gem::Requirement
22
+ version_requirements: !ruby/object:Gem::Requirement
25
23
  requirements:
26
24
  - - ~>
27
25
  - !ruby/object:Gem::Version
28
26
  version: '1.0'
29
- none: false
30
27
  - !ruby/object:Gem::Dependency
31
- version_requirements: !ruby/object:Gem::Requirement
28
+ name: httparty
29
+ requirement: !ruby/object:Gem::Requirement
32
30
  requirements:
33
31
  - - ~>
34
32
  - !ruby/object:Gem::Version
35
33
  version: 0.8.0
36
- none: false
37
- name: httparty
38
34
  type: :runtime
39
35
  prerelease: false
40
- requirement: !ruby/object:Gem::Requirement
36
+ version_requirements: !ruby/object:Gem::Requirement
41
37
  requirements:
42
38
  - - ~>
43
39
  - !ruby/object:Gem::Version
44
40
  version: 0.8.0
45
- none: false
46
41
  - !ruby/object:Gem::Dependency
47
- version_requirements: !ruby/object:Gem::Requirement
42
+ name: redcarpet
43
+ requirement: !ruby/object:Gem::Requirement
48
44
  requirements:
49
45
  - - ~>
50
46
  - !ruby/object:Gem::Version
51
47
  version: 2.1.0
52
- none: false
53
- name: redcarpet
54
48
  type: :runtime
55
49
  prerelease: false
56
- requirement: !ruby/object:Gem::Requirement
50
+ version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
52
  - - ~>
59
53
  - !ruby/object:Gem::Version
60
54
  version: 2.1.0
61
- none: false
62
55
  - !ruby/object:Gem::Dependency
63
- version_requirements: !ruby/object:Gem::Requirement
56
+ name: pygments.rb
57
+ requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
59
  - - ~>
66
60
  - !ruby/object:Gem::Version
67
61
  version: 0.4.2
68
- none: false
69
- name: pygments.rb
70
62
  type: :runtime
71
63
  prerelease: false
72
- requirement: !ruby/object:Gem::Requirement
64
+ version_requirements: !ruby/object:Gem::Requirement
73
65
  requirements:
74
66
  - - ~>
75
67
  - !ruby/object:Gem::Version
76
68
  version: 0.4.2
77
- none: false
78
69
  - !ruby/object:Gem::Dependency
79
- version_requirements: !ruby/object:Gem::Requirement
70
+ name: awesome_print
71
+ requirement: !ruby/object:Gem::Requirement
80
72
  requirements:
81
73
  - - ~>
82
74
  - !ruby/object:Gem::Version
83
75
  version: 1.0.0
84
- none: false
85
- name: awesome_print
86
76
  type: :runtime
87
77
  prerelease: false
88
- requirement: !ruby/object:Gem::Requirement
78
+ version_requirements: !ruby/object:Gem::Requirement
89
79
  requirements:
90
80
  - - ~>
91
81
  - !ruby/object:Gem::Version
92
82
  version: 1.0.0
93
- none: false
94
83
  - !ruby/object:Gem::Dependency
95
- version_requirements: !ruby/object:Gem::Requirement
84
+ name: json_pure
85
+ requirement: !ruby/object:Gem::Requirement
96
86
  requirements:
97
87
  - - ~>
98
88
  - !ruby/object:Gem::Version
99
89
  version: 1.5.1
100
- none: false
101
- name: json_pure
102
90
  type: :runtime
103
91
  prerelease: false
104
- requirement: !ruby/object:Gem::Requirement
92
+ version_requirements: !ruby/object:Gem::Requirement
105
93
  requirements:
106
94
  - - ~>
107
95
  - !ruby/object:Gem::Version
108
96
  version: 1.5.1
109
- none: false
110
97
  - !ruby/object:Gem::Dependency
111
- version_requirements: !ruby/object:Gem::Requirement
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
112
100
  requirements:
113
- - - ! '>='
101
+ - - '>='
114
102
  - !ruby/object:Gem::Version
115
103
  version: '0'
116
- none: false
117
- name: rake
118
104
  type: :development
119
105
  prerelease: false
120
- requirement: !ruby/object:Gem::Requirement
106
+ version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
- - - ! '>='
108
+ - - '>='
123
109
  - !ruby/object:Gem::Version
124
110
  version: '0'
125
- none: false
126
111
  description: Push your markdown files to your Zendesk knowledge base
127
112
  email:
128
113
  - nicolas.fouche@cleverscale.com
@@ -151,6 +136,7 @@ files:
151
136
  - zenpush.gemspec
152
137
  homepage: https://github.com/cleverscale/zenpush
153
138
  licenses: []
139
+ metadata: {}
154
140
  post_install_message:
155
141
  rdoc_options:
156
142
  - --charset=UTF-8
@@ -158,21 +144,19 @@ require_paths:
158
144
  - lib
159
145
  required_ruby_version: !ruby/object:Gem::Requirement
160
146
  requirements:
161
- - - ! '>='
147
+ - - '>='
162
148
  - !ruby/object:Gem::Version
163
149
  version: '0'
164
- none: false
165
150
  required_rubygems_version: !ruby/object:Gem::Requirement
166
151
  requirements:
167
- - - ! '>='
152
+ - - '>='
168
153
  - !ruby/object:Gem::Version
169
154
  version: '0'
170
- none: false
171
155
  requirements: []
172
156
  rubyforge_project:
173
- rubygems_version: 1.8.23
157
+ rubygems_version: 2.0.2
174
158
  signing_key:
175
- specification_version: 3
159
+ specification_version: 4
176
160
  summary: Push your markdown files to your Zendesk knowledge base
177
161
  test_files: []
178
162
  has_rdoc: