nt_models 0.1.4.1 → 0.1.4.2

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
- SHA1:
3
- metadata.gz: 8d8cbcc7a49cd6c0886a75df5e7ae86ee97bf6d3
4
- data.tar.gz: c163112f8f2b256c695fe27798d98ff925984401
2
+ SHA256:
3
+ metadata.gz: 8b7527404f9aab08989fc392a6f574627b9f4f7f700147368b57ac8e99a5d16b
4
+ data.tar.gz: f8aa1216264d68e3814d18921c22f8fe155363f5521fc67af111224bd8c23955
5
5
  SHA512:
6
- metadata.gz: ef35b863c6a68782b7c8cdd3ab3f630ab4320dbd5fced02c9fb650a40304a99a6174ddf391f1f5af7f0d46afa05f7c4e9f1c4543dc290244a10c4bdf46f57263
7
- data.tar.gz: 46eafb30dd762dab6273252a94b71278eb7e58466e8e2be56426d1882f734e62c1f5592ff095151ec09eaf8229fc37d05a283d2f02825f617f97632ae2c070a7
6
+ metadata.gz: 03afc34e691620b8302ecda8043f4b3b024d968edf493466e54387eb4b7cb902c99bbf9d4170c6a119e4b111c7d1df43c4d028aa52492be019c2488cfdd3d86c
7
+ data.tar.gz: 67aa6d19fcc2c6c2459a736174e1604b3f94f5fda682bdb8fc13a6d253a5ede8faca1a89f66e19dce1e1649729b1370c01d8d2992bd9d1ccaa908d7d2c06a41c
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/db/schema.rb CHANGED
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 2019_02_26_212737) do
13
+ ActiveRecord::Schema.define(version: 2019_03_27_162334) do
14
14
 
15
15
  # These are extensions that must be enabled in order to support this database
16
16
  enable_extension "plpgsql"
@@ -20,6 +20,9 @@ ActiveRecord::Schema.define(version: 2019_02_26_212737) do
20
20
  t.integer "followee_id"
21
21
  t.string "follower_handle"
22
22
  t.string "followee_handle"
23
+ t.index ["followee_id"], name: "index_follows_on_followee_id"
24
+ t.index ["follower_id", "followee_id"], name: "index_follows_on_follower_id_and_followee_id", unique: true
25
+ t.index ["follower_id"], name: "index_follows_on_follower_id"
23
26
  end
24
27
 
25
28
  create_table "hashtags", force: :cascade do |t|
@@ -37,6 +40,8 @@ ActiveRecord::Schema.define(version: 2019_02_26_212737) do
37
40
  t.string "tweet_body"
38
41
  t.datetime "tweet_created_on"
39
42
  t.string "tweet_author_handle"
43
+ t.index ["timeline_owner_id"], name: "index_timeline_pieces_on_timeline_owner_id"
44
+ t.index ["tweet_created_on"], name: "index_timeline_pieces_on_tweet_created_on"
40
45
  end
41
46
 
42
47
  create_table "tweet_tags", force: :cascade do |t|
@@ -49,12 +54,14 @@ ActiveRecord::Schema.define(version: 2019_02_26_212737) do
49
54
  t.datetime "created_on"
50
55
  t.integer "author_id"
51
56
  t.string "author_handle"
57
+ t.index ["author_id"], name: "index_tweets_on_author_id"
52
58
  end
53
59
 
54
60
  create_table "users", force: :cascade do |t|
55
61
  t.string "name"
56
62
  t.string "handle"
57
63
  t.string "password_digest"
64
+ t.index ["handle"], name: "index_users_on_handle", unique: true
58
65
  end
59
66
 
60
67
  end
data/lib/models/follow.rb CHANGED
File without changes
File without changes
File without changes
File without changes
data/lib/models/tweet.rb CHANGED
File without changes
File without changes
data/lib/models/user.rb CHANGED
File without changes
data/lib/nt_models.rb CHANGED
@@ -1,6 +1,4 @@
1
1
  require 'sinatra/activerecord'
2
2
  require 'active_record'
3
3
 
4
- require 'pry-byebug' if Sinatra::Base.development?
5
-
6
4
  Dir["#{__dir__}/models/*.rb"].each { |file| require file }
data/test/follow_test.rb CHANGED
File without changes
data/test/test_helper.rb CHANGED
File without changes
data/test/tweet_test.rb CHANGED
File without changes
data/test/user_test.rb CHANGED
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nt_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.1
4
+ version: 0.1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ari Carr
@@ -108,20 +108,6 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: pry-byebug
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
111
  description:
126
112
  email: acarr@brandeis.edu
127
113
  executables: []
@@ -167,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
153
  version: '0'
168
154
  requirements: []
169
155
  rubyforge_project:
170
- rubygems_version: 2.5.2
156
+ rubygems_version: 2.7.6
171
157
  signing_key:
172
158
  specification_version: 4
173
159
  summary: Models for COSI 105B project