twig 1.2 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.md +5 -0
- data/bin/twig-gh-update +5 -1
- data/lib/twig/cli.rb +1 -1
- data/lib/twig/homepage.rb +3 -0
- data/lib/twig/version.rb +1 -1
- data/twig.gemspec +2 -1
- metadata +6 -4
data/HISTORY.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Twig
|
2
2
|
====
|
3
3
|
|
4
|
+
1.2.1 (2013-05-04)
|
5
|
+
------------------
|
6
|
+
* FIX: Add User-Agent string to `twig-gh-update` GitHub requests to comply with
|
7
|
+
GitHub API v3.
|
8
|
+
|
4
9
|
1.2 (2013-03-21)
|
5
10
|
----------------
|
6
11
|
* ENHANCEMENT: Add `--only-<property>` and `--except-<property>` options for
|
data/bin/twig-gh-update
CHANGED
@@ -25,13 +25,17 @@ Twig::GithubRepo.new do |gh_repo|
|
|
25
25
|
URI.parse("#{issues_uri_base}?state=open"),
|
26
26
|
URI.parse("#{issues_uri_base}?state=closed")
|
27
27
|
]
|
28
|
+
user_agent = "Twig/#{Twig::VERSION} (for Git; <#{Twig::HOMEPAGE}>)"
|
28
29
|
|
29
30
|
begin
|
30
31
|
issues_uris.each do |issues_uri|
|
31
32
|
http = Net::HTTP.new(issues_uri.host, issues_uri.port)
|
32
33
|
http.use_ssl = true
|
33
34
|
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
34
|
-
request = Net::HTTP::Get.new(
|
35
|
+
request = Net::HTTP::Get.new(
|
36
|
+
issues_uri.path + '?' + issues_uri.query,
|
37
|
+
'User-Agent' => user_agent
|
38
|
+
)
|
35
39
|
response = http.request(request)
|
36
40
|
|
37
41
|
if response.code.to_i == 200
|
data/lib/twig/cli.rb
CHANGED
data/lib/twig/version.rb
CHANGED
data/twig.gemspec
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'twig/homepage'
|
4
5
|
require 'twig/version'
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
@@ -8,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
8
9
|
spec.version = Twig::VERSION
|
9
10
|
spec.authors = ['Ron DeVera']
|
10
11
|
spec.email = ["hello@rondevera.com"]
|
11
|
-
spec.homepage =
|
12
|
+
spec.homepage = Twig::HOMEPAGE
|
12
13
|
spec.summary = %{Your personal Git branch assistant.}
|
13
14
|
spec.description =
|
14
15
|
'Twig is your personal Git branch assistant. It\'s a command-line tool ' <<
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Ron DeVera
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2013-
|
18
|
+
date: 2013-05-04 00:00:00 -07:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
@@ -102,6 +103,7 @@ files:
|
|
102
103
|
- lib/twig/commit_time.rb
|
103
104
|
- lib/twig/display.rb
|
104
105
|
- lib/twig/github.rb
|
106
|
+
- lib/twig/homepage.rb
|
105
107
|
- lib/twig/options.rb
|
106
108
|
- lib/twig/util.rb
|
107
109
|
- lib/twig/version.rb
|
@@ -115,7 +117,7 @@ files:
|
|
115
117
|
- spec/twig_spec.rb
|
116
118
|
- twig.gemspec
|
117
119
|
has_rdoc: true
|
118
|
-
homepage: http://rondevera.github.
|
120
|
+
homepage: http://rondevera.github.io/twig/
|
119
121
|
licenses: []
|
120
122
|
|
121
123
|
post_install_message: |+
|