github-trending 0.2.2 → 0.2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 053f3ab2e5d2eaf8b406c7d3adf730a5fbaff290
4
- data.tar.gz: 6ede68b0652db73810e5b35893319ec40057fd1d
3
+ metadata.gz: 2ee666e1d36879f9d8932ea02d90203ed2dfd4e4
4
+ data.tar.gz: dbcb4abc696bd67fb5cd3653efe0fd74f55a0a84
5
5
  SHA512:
6
- metadata.gz: c8159c6c2c395ab6c20f35e5f837ef1883c35db04dd6d80b744405442abd217de431fcba2f466b839215c8845690303e17d46390664bef5435616225656229ff
7
- data.tar.gz: 2074924d7936220f5def6443715c7537e7cee56b06f27ebb8fadf5e4011205b16f2c3e94157f2347c8a0696b52b749be4f316783139d722a6843e82d09c43b99
6
+ metadata.gz: cb42e7fce5344de14e8b6a68d1bf61806dc5665ad5b64d53f6cf48409f8898b449e12d2463bfd54148411a0f9010636af4c821780ad06cae08e86f9f84044d33
7
+ data.tar.gz: 7939c877112684ab5f2a700f1c1233f4b57493d3a4967886031feb3bfa41c20a63f593e754d91b89fdfb404ebe25eb5e54bdc1b0c256e7fdaa1036095c0f9e6d
@@ -1,3 +1,11 @@
1
+ ## v0.2.3
2
+
3
+ * Added repository url(s) to the fetched list
4
+
5
+ ## v0.2.2
6
+
7
+ * Language method aliases, and proper symbol to string conversion for languages.
8
+
1
9
  ## v0.2.1
2
10
 
3
11
  * Can now pass `since` fields (:day, :week, :month). Symbols are also accepted.
@@ -1,10 +1,10 @@
1
1
  module Github
2
2
  module Trending
3
3
  class Project
4
- attr_accessor :name, :lang, :description, :star_count
4
+ attr_accessor :name, :lang, :description, :star_count, :url
5
5
 
6
6
  def to_a
7
- [@name, @lang, @star_count.to_s]
7
+ [@name, @lang, @star_count.to_s, @url]
8
8
  end
9
9
  end
10
10
  end
@@ -40,6 +40,7 @@ module Github
40
40
  meta_data = content.search('.repo-list-meta').text
41
41
  project.lang, project.star_count = extract_lang_and_star_from_meta(meta_data)
42
42
  project.name = content.search('.repo-list-name a').text.split.join
43
+ project.url = BASE_HOST + content.search('.repo-list-name a').first.attributes["href"].value
43
44
  project.description = content.search('.repo-list-description').text.gsub("\n", '').strip
44
45
  projects << project
45
46
  end
@@ -65,7 +66,7 @@ module Github
65
66
  language = language.to_s.gsub('_', '-') if language
66
67
 
67
68
  if since
68
- since =
69
+ since =
69
70
  case since.to_sym
70
71
  when :d, :day, :daily then 'daily'
71
72
  when :w, :week, :weekly then 'weekly'
@@ -1,5 +1,5 @@
1
1
  module Github
2
2
  module Trending
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-trending
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - rochefort
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-13 00:00:00.000000000 Z
12
+ date: 2015-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor