hubstats 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d0ed1ccc83782f9dcd5b82585e30b2b1b2fd67a
4
- data.tar.gz: 75bd4646f6434e6e218c63724b543a172c429b47
3
+ metadata.gz: 2738f6ee65f0bed9dff4a71540fd79964f8dfc9c
4
+ data.tar.gz: 779362d9a0ea7c117da03fe4a7352528fb272658
5
5
  SHA512:
6
- metadata.gz: f540d2f457868cf1972ec707b02e392f7f800cd37f119055ab8c21c86cce1a7b443407b85c08624424ea04529c71ee800a66322ab938a1fa5377c2d7a9533f8c
7
- data.tar.gz: 38aab120621ceacfb01aea32db1147b640580d43897b72b0af0730e173f45b88bf98b27962fb001cb9b892d26c29a0a464ddd1f8535baf13777a7b951db5af47
6
+ metadata.gz: 3dda1b252f7e89bb93300ffd724125bbef3e5967c3d0ba068ccb5781b3b7e5abf3e8503fa5511aef63572de3a660963db3d7463ae7c0c6ee2488f75274882475
7
+ data.tar.gz: f41d5098db46c9f572771b3268a52ce263314eed34f73fa5b4db7667481bbd51bf1b6d66581bd1739e61483a30c3e8c4fabff4ffa8d7c801d155b33bff223824
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ #### v0.7.1
2
+ * Change comment body to be text instead of string
3
+
4
+ > Emma Sax: Andy Fleener: https://github.com/sportngin/hubstats/pull/100
5
+
1
6
  #### v0.7.0
2
7
  * Upgrading Hubstats to Rails 4.2.5
3
8
 
@@ -0,0 +1,5 @@
1
+ class AddBodyTextColumnToComments < ActiveRecord::Migration
2
+ def change
3
+ add_column :hubstats_comments, :body_text, :text
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ class CopyBodyStringToBodyText < ActiveRecord::Migration
2
+ def self.up
3
+ Hubstats::Comment.update_all("body_text=body")
4
+ end
5
+
6
+ def self.down
7
+ Hubstats::Comment.update_all("body=body_text")
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ class RenameBodyToBodyString < ActiveRecord::Migration
2
+ def change
3
+ rename_column :hubstats_comments, :body, :body_string
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class RenameBodyTextToBody < ActiveRecord::Migration
2
+ def change
3
+ rename_column :hubstats_comments, :body_text, :body
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module Hubstats
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
@@ -9,113 +9,114 @@
9
9
  # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
10
  # you'll amass, the slower it'll run and the greater likelihood for issues).
11
11
  #
12
- # It's strongly recommended to check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(:version => 20160112162918) do
15
-
16
- create_table "hubstats_comments", :force => true do |t|
17
- t.string "kind"
18
- t.integer "user_id"
19
- t.integer "pull_request_id"
20
- t.integer "repo_id"
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20160113182419) do
15
+
16
+ create_table "hubstats_comments", force: :cascade do |t|
17
+ t.string "html_url", limit: 255
18
+ t.string "url", limit: 255
19
+ t.string "pull_request_url", limit: 255
20
+ t.integer "path", limit: 4
21
+ t.string "body_string", limit: 255
22
+ t.string "kind", limit: 255
23
+ t.integer "user_id", limit: 4
24
+ t.integer "pull_request_id", limit: 4
25
+ t.integer "repo_id", limit: 4
21
26
  t.datetime "created_at"
22
27
  t.datetime "updated_at"
23
- t.string "body"
24
- t.integer "path"
25
- t.string "html_url"
26
- t.string "url"
27
- t.string "pull_request_url"
28
+ t.text "body", limit: 65535
28
29
  end
29
30
 
30
- add_index "hubstats_comments", ["pull_request_id"], :name => "index_hubstats_comments_on_pull_request_id"
31
- add_index "hubstats_comments", ["user_id"], :name => "index_hubstats_comments_on_user_id"
31
+ add_index "hubstats_comments", ["pull_request_id"], name: "index_hubstats_comments_on_pull_request_id", using: :btree
32
+ add_index "hubstats_comments", ["user_id"], name: "index_hubstats_comments_on_user_id", using: :btree
32
33
 
33
- create_table "hubstats_deploys", :force => true do |t|
34
- t.string "git_revision"
35
- t.integer "repo_id"
34
+ create_table "hubstats_deploys", force: :cascade do |t|
35
+ t.string "git_revision", limit: 255
36
+ t.integer "repo_id", limit: 4
36
37
  t.datetime "deployed_at"
37
- t.integer "user_id"
38
+ t.integer "user_id", limit: 4
38
39
  end
39
40
 
40
- add_index "hubstats_deploys", ["repo_id"], :name => "index_hubstats_deploys_on_repo_id"
41
- add_index "hubstats_deploys", ["user_id"], :name => "index_hubstats_deploys_on_user_id"
41
+ add_index "hubstats_deploys", ["repo_id"], name: "index_hubstats_deploys_on_repo_id", using: :btree
42
+ add_index "hubstats_deploys", ["user_id"], name: "index_hubstats_deploys_on_user_id", using: :btree
42
43
 
43
- create_table "hubstats_labels", :force => true do |t|
44
- t.string "name"
45
- t.string "color"
46
- t.string "url"
44
+ create_table "hubstats_labels", force: :cascade do |t|
45
+ t.string "name", limit: 255
46
+ t.string "color", limit: 255
47
+ t.string "url", limit: 255
47
48
  end
48
49
 
49
- create_table "hubstats_labels_pull_requests", :force => true do |t|
50
- t.integer "pull_request_id"
51
- t.integer "label_id"
50
+ create_table "hubstats_labels_pull_requests", force: :cascade do |t|
51
+ t.integer "pull_request_id", limit: 4
52
+ t.integer "label_id", limit: 4
52
53
  end
53
54
 
54
- add_index "hubstats_labels_pull_requests", ["label_id"], :name => "index_hubstats_labels_pull_requests_on_label_id"
55
- add_index "hubstats_labels_pull_requests", ["pull_request_id"], :name => "index_hubstats_labels_pull_requests_on_pull_request_id"
56
-
57
- create_table "hubstats_pull_requests", :force => true do |t|
58
- t.integer "number"
59
- t.integer "user_id"
60
- t.integer "repo_id"
61
- t.datetime "created_at"
62
- t.datetime "updated_at"
55
+ add_index "hubstats_labels_pull_requests", ["label_id"], name: "index_hubstats_labels_pull_requests_on_label_id", using: :btree
56
+ add_index "hubstats_labels_pull_requests", ["pull_request_id"], name: "index_hubstats_labels_pull_requests_on_pull_request_id", using: :btree
57
+
58
+ create_table "hubstats_pull_requests", force: :cascade do |t|
59
+ t.string "url", limit: 255
60
+ t.string "html_url", limit: 255
61
+ t.string "issue_url", limit: 255
62
+ t.integer "number", limit: 4
63
+ t.string "state", limit: 255
64
+ t.string "title", limit: 255
65
+ t.datetime "created_at", null: false
66
+ t.datetime "updated_at", null: false
63
67
  t.datetime "closed_at"
64
- t.integer "additions"
65
- t.integer "deletions"
66
- t.integer "comments"
67
- t.string "url"
68
- t.string "html_url"
69
- t.string "issue_url"
70
- t.string "state"
71
- t.string "title"
72
- t.string "merged"
73
- t.integer "deploy_id"
74
- t.integer "merged_by"
68
+ t.string "merged", limit: 255
69
+ t.integer "comments", limit: 4
70
+ t.integer "additions", limit: 4
71
+ t.integer "deletions", limit: 4
72
+ t.integer "user_id", limit: 4
73
+ t.integer "repo_id", limit: 4
74
+ t.integer "deploy_id", limit: 4
75
+ t.integer "merged_by", limit: 4
75
76
  t.datetime "merged_at"
76
- t.integer "team_id"
77
+ t.integer "team_id", limit: 4
77
78
  end
78
79
 
79
- add_index "hubstats_pull_requests", ["deploy_id"], :name => "index_hubstats_pull_requests_on_deploy_id"
80
- add_index "hubstats_pull_requests", ["repo_id"], :name => "index_hubstats_pull_requests_on_repo_id"
81
- add_index "hubstats_pull_requests", ["team_id"], :name => "index_hubstats_pull_requests_on_team_id"
82
- add_index "hubstats_pull_requests", ["user_id"], :name => "index_hubstats_pull_requests_on_user_id"
83
-
84
- create_table "hubstats_repos", :force => true do |t|
85
- t.integer "owner_id"
86
- t.string "name"
87
- t.string "full_name"
80
+ add_index "hubstats_pull_requests", ["deploy_id"], name: "index_hubstats_pull_requests_on_deploy_id", using: :btree
81
+ add_index "hubstats_pull_requests", ["repo_id"], name: "index_hubstats_pull_requests_on_repo_id", using: :btree
82
+ add_index "hubstats_pull_requests", ["team_id"], name: "index_hubstats_pull_requests_on_team_id", using: :btree
83
+ add_index "hubstats_pull_requests", ["user_id"], name: "index_hubstats_pull_requests_on_user_id", using: :btree
84
+
85
+ create_table "hubstats_repos", force: :cascade do |t|
86
+ t.string "name", limit: 255
87
+ t.string "full_name", limit: 255
88
+ t.string "url", limit: 255
89
+ t.string "html_url", limit: 255
90
+ t.string "labels_url", limit: 255
88
91
  t.datetime "pushed_at"
89
- t.datetime "created_at"
90
- t.datetime "updated_at"
91
- t.string "url"
92
- t.string "html_url"
93
- t.string "labels_url"
92
+ t.datetime "created_at", null: false
93
+ t.datetime "updated_at", null: false
94
+ t.integer "owner_id", limit: 4
94
95
  end
95
96
 
96
- add_index "hubstats_repos", ["owner_id"], :name => "index_hubstats_repos_on_owner_id"
97
+ add_index "hubstats_repos", ["owner_id"], name: "index_hubstats_repos_on_owner_id", using: :btree
97
98
 
98
- create_table "hubstats_teams", :force => true do |t|
99
- t.string "name"
99
+ create_table "hubstats_teams", force: :cascade do |t|
100
+ t.string "name", limit: 255
100
101
  t.boolean "hubstats"
101
102
  end
102
103
 
103
- create_table "hubstats_teams_users", :force => true do |t|
104
- t.integer "user_id"
105
- t.integer "team_id"
104
+ create_table "hubstats_teams_users", force: :cascade do |t|
105
+ t.integer "user_id", limit: 4
106
+ t.integer "team_id", limit: 4
106
107
  end
107
108
 
108
- add_index "hubstats_teams_users", ["team_id"], :name => "index_hubstats_teams_users_on_team_id"
109
- add_index "hubstats_teams_users", ["user_id"], :name => "index_hubstats_teams_users_on_user_id"
110
-
111
- create_table "hubstats_users", :force => true do |t|
112
- t.string "login"
113
- t.string "role"
114
- t.datetime "created_at", :null => false
115
- t.datetime "updated_at", :null => false
116
- t.string "avatar_url"
117
- t.string "url"
118
- t.string "html_url"
109
+ add_index "hubstats_teams_users", ["team_id"], name: "index_hubstats_teams_users_on_team_id", using: :btree
110
+ add_index "hubstats_teams_users", ["user_id"], name: "index_hubstats_teams_users_on_user_id", using: :btree
111
+
112
+ create_table "hubstats_users", force: :cascade do |t|
113
+ t.string "login", limit: 255
114
+ t.string "avatar_url", limit: 255
115
+ t.string "url", limit: 255
116
+ t.string "html_url", limit: 255
117
+ t.string "role", limit: 255
118
+ t.datetime "created_at", null: false
119
+ t.datetime "updated_at", null: false
119
120
  end
120
121
 
121
122
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubstats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elliot Hursh
@@ -298,6 +298,10 @@ files:
298
298
  - db/migrate/20150713185013_add_team_id_to_prs.rb
299
299
  - db/migrate/20150721192612_add_indexes_to_tables.rb
300
300
  - db/migrate/20160112143749_delete_unused_columns.rb
301
+ - db/migrate/20160113175649_add_body_text_column_to_comments.rb
302
+ - db/migrate/20160113181700_copy_body_string_to_body_text.rb
303
+ - db/migrate/20160113182307_rename_body_to_body_string.rb
304
+ - db/migrate/20160113182356_rename_body_text_to_body.rb
301
305
  - db/seeds.rb
302
306
  - hubstats.gemspec
303
307
  - lib/generators/hubstats/install_generator.rb