githubissues-port 0.3 → 0.3.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.
- checksums.yaml +8 -8
- data/README.rdoc +6 -5
- data/export.xlsx +0 -0
- data/githubissues-port.gemspec +2 -1
- data/lib/githubissues-port/import.rb +2 -1
- data/lib/githubissues-port/version.rb +1 -1
- data/spec/test_spec.rb +4 -4
- metadata +22 -8
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGFmYTNjYWE3OTE3MmE2YTk0MmRjNGIyM2VmZTk1ZmNhYWViODk1ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTM2ODFiYjRkZjEyNjlhYzA5YThjY2RmOTI2NzcwY2ZjZTBhMzQ2Yg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTRkNTc3ZDlkZmMxZmFkNDYzMTE3YWU5ZTU4MzAyOWRjMWVlOTk1M2QxZGFm
|
10
|
+
YWZkZDQxOWZjYTRjNWQwY2E0MTc5Y2VlMWRiMWVlZTc1YzJhNjYzOTkzNDk2
|
11
|
+
ZWZhNWY4YWQxYWFhODM3Mzc1ZTBmOGM4MWE4ODc0ZjVjZDA0MjE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWRlMGQ3N2U2ZTE3MWQ2MDhkY2RkMzZkMTg2NzE0NmY4MzcxMWU4ZWUwZjQ5
|
14
|
+
N2MwMTM2OTNhM2Q5Y2RlZGI2NjUzMmE5ZWMyMTgxOGQ4NDVhNWE3ZTlmMGVm
|
15
|
+
NWUwN2FhNjAxYzlhNzZkYzQyNmM5YzZkMDFmZWIzYjMxNzk4NjI=
|
data/README.rdoc
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
{<img src="https://badge.fury.io/rb/githubissues-port.png" alt="Gem Version" />}[http://badge.fury.io/rb/githubissues-port]
|
2
|
+
|
1
3
|
= githubissues-port, an Excel import/export extension for github issues in Ruby
|
2
4
|
|
3
5
|
githubissues-port is a Ruby gem that facilittes easy import and export of Github Issues in Ruby and Ruyb on Rails.
|
@@ -13,7 +15,6 @@ To use it in Rails, add this line to your Gemfile:
|
|
13
15
|
|
14
16
|
gem "githubissues-port"
|
15
17
|
|
16
|
-
|
17
18
|
== Basic Usage
|
18
19
|
githubissues-port can simply import or export issues from an Excel file.:
|
19
20
|
|
@@ -26,13 +27,13 @@ githubissues-port can simply import or export issues from an Excel file.:
|
|
26
27
|
owner = '***********'
|
27
28
|
repo = '***********'
|
28
29
|
|
29
|
-
connection = Github.new
|
30
|
+
connection = Github.new(basic_auth: "#{your_github_username}:#{your_github_password}")
|
30
31
|
|
31
32
|
# The import mudule will import issues from Excel, creates an issue if the number blank, otherwise, updating an existing issue by looking up the issue number.
|
32
|
-
Githubissues::Port::Import.new
|
33
|
+
Githubissues::Port::Import.new(connection, owner, repo, 'import.xlsx', fields: ['title', 'labels'])
|
33
34
|
|
34
35
|
# The export module will export issues to Excel.
|
35
|
-
Githubissues::Port::Export.new
|
36
|
+
Githubissues::Port::Export.new(connection, owner, repo, 'export.xlsx', fields: ['number', 'title', 'body', 'labels'])
|
36
37
|
|
37
38
|
== Contributing
|
38
39
|
|
@@ -56,4 +57,4 @@ Please use the {Issues}[https://github.com/githubissues-port/githubissues-port/i
|
|
56
57
|
|
57
58
|
== License
|
58
59
|
|
59
|
-
Creek has been published under {MIT License}[https://github.com/githubissues-port/githubissues-port/blob/master/LICENSE.txt]
|
60
|
+
Creek has been published under {MIT License}[https://github.com/githubissues-port/githubissues-port/blob/master/LICENSE.txt]
|
data/export.xlsx
CHANGED
Binary file
|
data/githubissues-port.gemspec
CHANGED
@@ -20,8 +20,9 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.required_ruby_version = '>= 1.9.2'
|
21
21
|
|
22
22
|
spec.add_dependency 'github_api'
|
23
|
-
spec.add_dependency '
|
23
|
+
spec.add_dependency 'faraday','0.8.0'
|
24
24
|
spec.add_dependency 'creek'
|
25
|
+
spec.add_dependency 'axlsx','~> 2.0.1'
|
25
26
|
spec.add_development_dependency 'rake', '~>10.1.1'
|
26
27
|
spec.add_development_dependency 'rspec'
|
27
28
|
end
|
@@ -16,7 +16,8 @@ module Githubissues
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def parse_excel
|
19
|
-
|
19
|
+
puts "---ff----#{path}"
|
20
|
+
creek = Creek::Book.new(path, :check_file_extension => false)
|
20
21
|
sheet= creek.sheets[0]
|
21
22
|
sheet.rows.each_with_index do |row, row_index|
|
22
23
|
break if row.first.nil? and row[1].nil?
|
data/spec/test_spec.rb
CHANGED
@@ -2,19 +2,19 @@ require 'githubissues-port'
|
|
2
2
|
|
3
3
|
describe 'githubissues-port exporting and importing to xlsx' do
|
4
4
|
before(:all) do
|
5
|
-
my_github_username = '
|
6
|
-
my_github_password = '
|
5
|
+
my_github_username = 'githubissues-port'
|
6
|
+
my_github_password = 'Github123'
|
7
7
|
@connection = Github.new basic_auth: "#{my_github_username}:#{my_github_password}"
|
8
8
|
end
|
9
9
|
|
10
10
|
it 'export should be successfull.' do
|
11
|
-
export = Githubissues::Port::Export.new @connection, '
|
11
|
+
export = Githubissues::Port::Export.new @connection, 'githubissues-port', 'foo', 'export.xlsx', fields: ['number', 'title', 'body', 'labels']
|
12
12
|
puts export.path
|
13
13
|
export.should_not be_nil
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'import should be successfull.' do
|
17
|
-
import = Githubissues::Port::Import.new @connection, '
|
17
|
+
import = Githubissues::Port::Import.new @connection, 'githubissues-port', 'foo', 'spec/fixtures/sample.xlsx', fields: ['title', 'labels']
|
18
18
|
puts import.messages.inspect
|
19
19
|
import.should_not be_nil
|
20
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: githubissues-port
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramtin Vaziri
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-01
|
13
|
+
date: 2014-02-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: github_api
|
@@ -27,19 +27,19 @@ dependencies:
|
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: '0'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
|
-
name:
|
30
|
+
name: faraday
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
35
|
+
version: 0.8.0
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
42
|
+
version: 0.8.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: creek
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -54,6 +54,20 @@ dependencies:
|
|
54
54
|
- - ! '>='
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '0'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: axlsx
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ~>
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 2.0.1
|
64
|
+
type: :runtime
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ~>
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 2.0.1
|
57
71
|
- !ruby/object:Gem::Dependency
|
58
72
|
name: rake
|
59
73
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
135
|
version: '0'
|
122
136
|
requirements: []
|
123
137
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.
|
138
|
+
rubygems_version: 2.1.10
|
125
139
|
signing_key:
|
126
140
|
specification_version: 4
|
127
141
|
summary: github-issues-port is a Ruby gem that facilittes easy import and export of
|