jira_api 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 80334261bd7e82a9fe81923e106b0ff69a83d0f9
4
+ data.tar.gz: 00f9411f9588a9717a8fd738250b65df5dd1bd90
5
+ SHA512:
6
+ metadata.gz: 8def337443f9fb83520676d9f47594c4b794476ffcf1d3c172f55f839d303c810604b507bb6c7c9c9a6ff35b50bfc01e181d27da073f0145673962b6f3a4ce46
7
+ data.tar.gz: 632226381e4dd1ba5a33dfdf020de74389d3e4b2fa88643aee1cf46b848a8b93bf00329b380004bd5bcc1148696e3e32eea6da94d596c4ff534c509e6b9724ed
data/.idea/.name ADDED
@@ -0,0 +1 @@
1
+ jira_api
data/.idea/.rakeTasks ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="FacetManager">
4
+ <facet type="gem" name="Ruby Gem">
5
+ <configuration>
6
+ <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
7
+ <option name="GEM_APP_TEST_PATH" value="" />
8
+ <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
9
+ </configuration>
10
+ </facet>
11
+ </component>
12
+ <component name="NewModuleRootManager">
13
+ <content url="file://$MODULE_DIR$" />
14
+ <orderEntry type="inheritedJdk" />
15
+ <orderEntry type="sourceFolder" forTests="false" />
16
+ <orderEntry type="library" scope="PROVIDED" name="faraday (v0.9.1, rbenv: 1.9.3-p551) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="json (v1.8.2, rbenv: 1.9.3-p551) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="multipart-post (v2.0.0, rbenv: 1.9.3-p551) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, rbenv: 1.9.3-p551) [gem]" level="application" />
20
+ </component>
21
+ </module>
data/.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="rbenv: 1.9.3-p551" project-jdk-type="RUBY_SDK" />
4
+ </project>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/jira_api.iml" filepath="$PROJECT_DIR$/.idea/jira_api.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,5 @@
1
+ <component name="DependencyValidationManager">
2
+ <state>
3
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
+ </state>
5
+ </component>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,237 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="849f8a6d-89f2-45b1-8ce8-e938c3b5ae5d" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/jira_api.gemspec" afterPath="$PROJECT_DIR$/jira_api.gemspec" />
6
+ </list>
7
+ <ignored path="jira_api.iws" />
8
+ <ignored path=".idea/workspace.xml" />
9
+ <ignored path=".idea/dataSources.local.xml" />
10
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
11
+ <option name="TRACKING_ENABLED" value="true" />
12
+ <option name="SHOW_DIALOG" value="false" />
13
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
14
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
15
+ <option name="LAST_RESOLUTION" value="IGNORE" />
16
+ </component>
17
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
18
+ <component name="CreatePatchCommitExecutor">
19
+ <option name="PATCH_PATH" value="" />
20
+ </component>
21
+ <component name="DaemonCodeAnalyzer">
22
+ <disable_hints />
23
+ </component>
24
+ <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
25
+ <component name="FavoritesManager">
26
+ <favorites_list name="jira_api" />
27
+ </component>
28
+ <component name="FileEditorManager">
29
+ <leaf>
30
+ <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
31
+ <entry file="file://$PROJECT_DIR$/README.md">
32
+ <provider editor-type-id="MarkdownPreviewEditor">
33
+ <state />
34
+ </provider>
35
+ <provider selected="true" editor-type-id="text-editor">
36
+ <state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="705">
37
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
38
+ <folding />
39
+ </state>
40
+ </provider>
41
+ </entry>
42
+ </file>
43
+ <file leaf-file-name="test.rb" pinned="false" current-in-tab="false">
44
+ <entry file="file://$PROJECT_DIR$/test.rb">
45
+ <provider selected="true" editor-type-id="text-editor">
46
+ <state vertical-scroll-proportion="-4.8" vertical-offset="0" max-vertical-offset="210">
47
+ <caret line="8" column="27" selection-start-line="8" selection-start-column="27" selection-end-line="8" selection-end-column="27" />
48
+ <folding />
49
+ </state>
50
+ </provider>
51
+ </entry>
52
+ </file>
53
+ <file leaf-file-name="jira_api.gemspec" pinned="false" current-in-tab="true">
54
+ <entry file="file://$PROJECT_DIR$/jira_api.gemspec">
55
+ <provider selected="true" editor-type-id="text-editor">
56
+ <state vertical-scroll-proportion="0.12576687" vertical-offset="169" max-vertical-offset="495">
57
+ <caret line="14" column="28" selection-start-line="14" selection-start-column="28" selection-end-line="14" selection-end-column="28" />
58
+ <folding />
59
+ </state>
60
+ </provider>
61
+ </entry>
62
+ </file>
63
+ </leaf>
64
+ </component>
65
+ <component name="Git.Settings">
66
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
67
+ </component>
68
+ <component name="IdeDocumentHistory">
69
+ <option name="CHANGED_PATHS">
70
+ <list>
71
+ <option value="$PROJECT_DIR$/test.rb" />
72
+ <option value="$PROJECT_DIR$/jira_api.gemspec" />
73
+ </list>
74
+ </option>
75
+ </component>
76
+ <component name="JsGulpfileManager">
77
+ <detection-done>true</detection-done>
78
+ </component>
79
+ <component name="ProjectFrameBounds">
80
+ <option name="x" value="33" />
81
+ <option name="y" value="104" />
82
+ <option name="width" value="1026" />
83
+ <option name="height" value="684" />
84
+ </component>
85
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
86
+ <OptionsSetting value="true" id="Add" />
87
+ <OptionsSetting value="true" id="Remove" />
88
+ <OptionsSetting value="true" id="Checkout" />
89
+ <OptionsSetting value="true" id="Update" />
90
+ <OptionsSetting value="true" id="Status" />
91
+ <OptionsSetting value="true" id="Edit" />
92
+ <ConfirmationsSetting value="0" id="Add" />
93
+ <ConfirmationsSetting value="0" id="Remove" />
94
+ </component>
95
+ <component name="ProjectView">
96
+ <navigator currentView="ProjectPane" proportions="" version="1">
97
+ <flattenPackages />
98
+ <showMembers />
99
+ <showModules />
100
+ <showLibraryContents />
101
+ <hideEmptyPackages />
102
+ <abbreviatePackageNames />
103
+ <autoscrollToSource />
104
+ <autoscrollFromSource />
105
+ <sortByType />
106
+ </navigator>
107
+ <panes>
108
+ <pane id="ProjectPane">
109
+ <subPane>
110
+ <PATH>
111
+ <PATH_ELEMENT>
112
+ <option name="myItemId" value="jira_api" />
113
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
114
+ </PATH_ELEMENT>
115
+ </PATH>
116
+ <PATH>
117
+ <PATH_ELEMENT>
118
+ <option name="myItemId" value="jira_api" />
119
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
120
+ </PATH_ELEMENT>
121
+ <PATH_ELEMENT>
122
+ <option name="myItemId" value="jira_api" />
123
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
124
+ </PATH_ELEMENT>
125
+ </PATH>
126
+ <PATH>
127
+ <PATH_ELEMENT>
128
+ <option name="myItemId" value="jira_api" />
129
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
130
+ </PATH_ELEMENT>
131
+ <PATH_ELEMENT>
132
+ <option name="myItemId" value="jira_api" />
133
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
134
+ </PATH_ELEMENT>
135
+ <PATH_ELEMENT>
136
+ <option name="myItemId" value="bin" />
137
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
138
+ </PATH_ELEMENT>
139
+ </PATH>
140
+ </subPane>
141
+ </pane>
142
+ <pane id="Scope" />
143
+ </panes>
144
+ </component>
145
+ <component name="PropertiesComponent">
146
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
147
+ <property name="WebServerToolWindowFactoryState" value="false" />
148
+ </component>
149
+ <component name="RunManager">
150
+ <list size="0" />
151
+ </component>
152
+ <component name="ShelveChangesManager" show_recycled="false" />
153
+ <component name="TaskManager">
154
+ <task active="true" id="Default" summary="Default task">
155
+ <changelist id="849f8a6d-89f2-45b1-8ce8-e938c3b5ae5d" name="Default" comment="" />
156
+ <created>1438502103383</created>
157
+ <option name="number" value="Default" />
158
+ <updated>1438502103383</updated>
159
+ </task>
160
+ <servers />
161
+ </component>
162
+ <component name="ToolWindowManager">
163
+ <frame x="33" y="104" width="1026" height="684" extended-state="0" />
164
+ <editor active="true" />
165
+ <layout>
166
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3303887" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
167
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
168
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
169
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
170
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
171
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
172
+ <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
173
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
174
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
175
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
176
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
177
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
178
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
179
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
180
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
181
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
182
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
183
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
184
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
185
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
186
+ </layout>
187
+ </component>
188
+ <component name="Vcs.Log.UiProperties">
189
+ <option name="RECENTLY_FILTERED_USER_GROUPS">
190
+ <collection />
191
+ </option>
192
+ <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
193
+ <collection />
194
+ </option>
195
+ </component>
196
+ <component name="VcsContentAnnotationSettings">
197
+ <option name="myLimit" value="2678400000" />
198
+ </component>
199
+ <component name="VcsManagerConfiguration">
200
+ <option name="myTodoPanelSettings">
201
+ <TodoPanelSettings />
202
+ </option>
203
+ </component>
204
+ <component name="XDebuggerManager">
205
+ <breakpoint-manager />
206
+ <watches-manager />
207
+ </component>
208
+ <component name="editorHistoryManager">
209
+ <entry file="file://$PROJECT_DIR$/README.md">
210
+ <provider editor-type-id="MarkdownPreviewEditor">
211
+ <state />
212
+ </provider>
213
+ <provider selected="true" editor-type-id="text-editor">
214
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="705">
215
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
216
+ <folding />
217
+ </state>
218
+ </provider>
219
+ </entry>
220
+ <entry file="file://$PROJECT_DIR$/test.rb">
221
+ <provider selected="true" editor-type-id="text-editor">
222
+ <state vertical-scroll-proportion="-4.8" vertical-offset="0" max-vertical-offset="210">
223
+ <caret line="8" column="27" selection-start-line="8" selection-start-column="27" selection-end-line="8" selection-end-column="27" />
224
+ <folding />
225
+ </state>
226
+ </provider>
227
+ </entry>
228
+ <entry file="file://$PROJECT_DIR$/jira_api.gemspec">
229
+ <provider selected="true" editor-type-id="text-editor">
230
+ <state vertical-scroll-proportion="0.12576687" vertical-offset="169" max-vertical-offset="495">
231
+ <caret line="14" column="28" selection-start-line="14" selection-start-column="28" selection-end-line="14" selection-end-column="28" />
232
+ <folding />
233
+ </state>
234
+ </provider>
235
+ </entry>
236
+ </component>
237
+ </project>
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in jira_api.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 kinezu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # JiraApi
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/jira_api`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'jira_api'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install jira_api
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jira_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "jira_api"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
data/jira_api.gemspec ADDED
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'jira_api/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "jira_api"
8
+ spec.version = JiraApi::VERSION
9
+ spec.authors = ["kinezu"]
10
+ spec.email = ["test@test.test"]
11
+
12
+ spec.summary = "First iteration of my jira-api helper"
13
+ spec.description = "First iteration of my jira-api helper"
14
+ spec.homepage = "https://github.com/kinezu/jira_api.git"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_dependency 'json'
23
+ spec.add_dependency 'faraday'
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.10"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ end
@@ -0,0 +1,3 @@
1
+ module JiraApi
2
+ VERSION = "0.0.1"
3
+ end
data/lib/jira_api.rb ADDED
@@ -0,0 +1,22 @@
1
+ require 'json'
2
+ require 'faraday'
3
+
4
+ module JiraApi
5
+
6
+ class Client
7
+
8
+ def initialize(jira_host, username=nil, password=nil)
9
+ @jira_url = "#{jira_host}/rest/api/2/"
10
+ @agent = Faraday.new(@jira_url) do |faraday|
11
+ faraday.headers['Accept'] = 'application/json'
12
+ faraday.adapter Faraday.default_adapter # make requests with Net::HTTP
13
+ end
14
+ @agent.basic_auth(username, password)
15
+ @agent
16
+ end
17
+
18
+ def issue(issue)
19
+ @agent.get("#{@jira_url}issue/#{issue}").body
20
+ end
21
+ end
22
+ end
data/test.rb ADDED
@@ -0,0 +1,9 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/lib/jira_api')
2
+
3
+ jira_host = ""
4
+ jira_username = ""
5
+ jira_password = ""
6
+
7
+ @client = JiraApi::Client.new(jira_host, jira_username, jira_password)
8
+
9
+ puts @client.issue("BUG-555")
metadata ADDED
@@ -0,0 +1,121 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jira_api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - kinezu
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-08-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.10'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ description: First iteration of my jira-api helper
70
+ email:
71
+ - test@test.test
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".idea/.name"
77
+ - ".idea/.rakeTasks"
78
+ - ".idea/encodings.xml"
79
+ - ".idea/jira_api.iml"
80
+ - ".idea/misc.xml"
81
+ - ".idea/modules.xml"
82
+ - ".idea/scopes/scope_settings.xml"
83
+ - ".idea/vcs.xml"
84
+ - ".idea/workspace.xml"
85
+ - CODE_OF_CONDUCT.md
86
+ - Gemfile
87
+ - LICENSE.txt
88
+ - README.md
89
+ - Rakefile
90
+ - bin/console
91
+ - bin/setup
92
+ - jira_api.gemspec
93
+ - lib/jira_api.rb
94
+ - lib/jira_api/version.rb
95
+ - test.rb
96
+ homepage: https://github.com/kinezu/jira_api.git
97
+ licenses:
98
+ - MIT
99
+ metadata: {}
100
+ post_install_message:
101
+ rdoc_options: []
102
+ require_paths:
103
+ - lib
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ requirements: []
115
+ rubyforge_project:
116
+ rubygems_version: 2.2.2
117
+ signing_key:
118
+ specification_version: 4
119
+ summary: First iteration of my jira-api helper
120
+ test_files: []
121
+ has_rdoc: