mastodon-social 0.1.0 → 0.1.2

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
  SHA256:
3
- metadata.gz: 73810aa00a8d27299a5c9446c3cc0a239d5b0076a104688255bac6d70ee203a4
4
- data.tar.gz: dde89d4d59683de3b0c971dce6139cab466135dbb2c77f4d6265d0422b5468e8
3
+ metadata.gz: 51f403515afb933de49b918a5c25dd1c55c0f08b62b4ab9b17d7c34d38b26da0
4
+ data.tar.gz: 1ac5d04d7a5debfcb6a5a837d4b0d203a4c69268a82fe71569af14ab3f8a25bc
5
5
  SHA512:
6
- metadata.gz: 656f21b8a566eac6f97802ad179521a05710ff071abcfd2066b778821f170362b2ca342ab7cbda02e65847d47dc046aac23cf35eea1fb323ae5209d32d878b7e
7
- data.tar.gz: 43587680e329dc2b0fd6ed335fd70d8b39a65091109211af7fb0c5c29a13cfa7f050fcaaa6be46ad9957335e06672e50150348397eb4ead81939b42425967e2d
6
+ metadata.gz: 98326d8c95aa4a43ff745490f67a17cd73b3ee3aac2b33061d1143b89705cab19384d7300b8a278bd293c28b514736eb93651b676b92e66e777e85cdcf741246
7
+ data.tar.gz: 75fb20948b35d1880db3199413db386b3bf0fddab630cdbe19879d9216755ac947b1db183c581fb7e45b7e859f0f1f2302415402895db436e0df28c30f10c741
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ source "https://rubygems.org"
6
6
  gemspec
7
7
 
8
8
  # We require the latest mastodon-api, since it updated its http dependency to 4.0, but it hasn't been published
9
- gem "mastodon-api", :git => "git://github.com/mastodon/mastodon-api"
9
+ gem "mastodon-api", :git => "https://github.com/mastodon/mastodon-api"
10
10
 
11
11
  gem "rake", "~> 13.0"
12
12
 
data/Gemfile.lock CHANGED
@@ -1,22 +1,55 @@
1
+ GIT
2
+ remote: https://github.com/mastodon/mastodon-api
3
+ revision: 60b0ed09c3b979cbeb833db0a320b30e1b022a1e
4
+ specs:
5
+ mastodon-api (2.0.0)
6
+ addressable (~> 2.6)
7
+ buftok (~> 0)
8
+ http (~> 4.0)
9
+ oj (~> 3.7)
10
+
1
11
  PATH
2
12
  remote: .
3
13
  specs:
4
- mastodon-social (0.1.0)
14
+ mastodon-social (0.1.2)
15
+ http (~> 4.4)
16
+ mastodon-api (~> 2.0)
5
17
 
6
18
  GEM
7
19
  remote: https://rubygems.org/
8
20
  specs:
21
+ addressable (2.8.5)
22
+ public_suffix (>= 2.0.2, < 6.0)
9
23
  ast (2.4.2)
24
+ buftok (0.3.0)
10
25
  debug (1.7.1)
11
26
  irb (>= 1.5.0)
12
27
  reline (>= 0.3.1)
28
+ domain_name (0.5.20190701)
29
+ unf (>= 0.0.5, < 1.0.0)
30
+ ffi (1.16.2)
31
+ ffi-compiler (1.0.1)
32
+ ffi (>= 1.0.0)
33
+ rake
34
+ http (4.4.1)
35
+ addressable (~> 2.3)
36
+ http-cookie (~> 1.0)
37
+ http-form_data (~> 2.2)
38
+ http-parser (~> 1.2.0)
39
+ http-cookie (1.0.5)
40
+ domain_name (~> 0.5)
41
+ http-form_data (2.3.0)
42
+ http-parser (1.2.3)
43
+ ffi-compiler (>= 1.0, < 2.0)
13
44
  io-console (0.6.0)
14
45
  irb (1.6.2)
15
46
  reline (>= 0.3.0)
16
47
  json (2.6.3)
48
+ oj (3.16.1)
17
49
  parallel (1.22.1)
18
50
  parser (3.2.0.0)
19
51
  ast (~> 2.4.1)
52
+ public_suffix (5.0.3)
20
53
  rainbow (3.1.1)
21
54
  rake (13.0.6)
22
55
  regexp_parser (2.6.1)
@@ -36,13 +69,18 @@ GEM
36
69
  rubocop-ast (1.24.1)
37
70
  parser (>= 3.1.1.0)
38
71
  ruby-progressbar (1.11.0)
72
+ unf (0.1.4)
73
+ unf_ext
74
+ unf_ext (0.0.8.2)
39
75
  unicode-display_width (2.4.2)
40
76
 
41
77
  PLATFORMS
78
+ arm64-darwin-22
42
79
  x86_64-darwin-21
43
80
 
44
81
  DEPENDENCIES
45
82
  debug
83
+ mastodon-api!
46
84
  mastodon-social!
47
85
  rake (~> 13.0)
48
86
  rubocop (~> 1.21)
data/README.md CHANGED
@@ -8,10 +8,22 @@ In your `Gemfile` add:
8
8
  ```ruby
9
9
  group :jekyll_plugins do
10
10
  # (other jekyll plugins)
11
- gem 'mastodon-api'
11
+ gem 'mastodon-social'
12
12
  end
13
13
  ```
14
14
 
15
+ The `mastodon-social` gem depends on `mastodon-api`. However, as of September 2023, `mastodon-api` has not been pushed to
16
+ RubyGems in over three years. This means if you just pull in the default version of the gem, it will be out of date and will
17
+ give you strange errors because all its dependencies are old.
18
+
19
+ The version of `mastodon-api` on GitHub has been updated; it just hasn't been pushed to RubyGems. You will need to pull
20
+ `mastodon-api` directly from GitHub instead of RubyGems. To do this, add this line in your `Gemfile` directly under where
21
+ you are importing `mastodon-social`:
22
+
23
+ ```ruby
24
+ gem 'mastodon-api', :git => 'https://github.com/mastodon/mastodon-api.git'
25
+ ```
26
+
15
27
  ## Usage
16
28
 
17
29
  The plugin will add a new `mastodon` command to your jekyll setup:
@@ -57,7 +69,7 @@ the block, like so:
57
69
  ```html
58
70
  {% mastodon_social %}
59
71
  Boost this on Mastodon!
60
- {% end_mastodon_social %}
72
+ {% endmastodon_social %}
61
73
  ```
62
74
 
63
75
  ### Setup and Authorization
@@ -146,6 +158,10 @@ After checking out the repo, run `bin/setup` to install dependencies. You can al
146
158
 
147
159
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
148
160
 
161
+ To install without bundle (eg from a raw repository), update `lib/version.rb` to the new version number, commit your changes,
162
+ and create a new tag in git. Push the changes with `--tags` to GitHub. Then run `rake install` to build the new gem package, and
163
+ `gem push pkg/<packagename>` to publish it to RubyGems. Lastly, create a new release on GitHub with the same version number.
164
+
149
165
  ## Contributing
150
166
 
151
167
  Bug reports and pull requests are welcome on GitHub at https://github.com/reiterate-app/mastodon-social.
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module MastodonSocial
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "mastodon-social"
7
+ spec.version = MastodonSocial::VERSION
8
+ spec.authors = ["Michael Meckler"]
9
+ spec.email = ["rattroupe@reiterate-app.com"]
10
+
11
+ spec.summary = "Create links for a Jekyll blog that allow reposting on Mastodon"
12
+ spec.description = "Add mastodon social links"
13
+ spec.required_ruby_version = ">= 2.6.0"
14
+ spec.add_runtime_dependency 'mastodon-api', '~> 2.0'
15
+ spec.add_runtime_dependency 'http', '~> 4.4'
16
+
17
+ # Specify which files should be added to the gem when it is released.
18
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
+ spec.files = Dir.chdir(__dir__) do
20
+ `git ls-files -z`.split("\x0").reject do |f|
21
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
22
+ end
23
+ end
24
+ spec.bindir = "exe"
25
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ["lib"]
27
+
28
+ # For more information and examples about making a new gem, check out our
29
+ # guide at: https://bundler.io/guides/creating_gem.html
30
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastodon-social
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Meckler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-14 00:00:00.000000000 Z
11
+ date: 2023-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mastodon-api
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: http
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '4.4'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '4.4'
27
41
  description: Add mastodon social links
28
42
  email:
29
43
  - rattroupe@reiterate-app.com
@@ -41,6 +55,7 @@ files:
41
55
  - lib/jekyll/tags/mastodon-link.rb
42
56
  - lib/mastodon-social.rb
43
57
  - lib/version.rb
58
+ - mastodon-social.gemspec
44
59
  - sig/mastodon-social.rbs
45
60
  homepage:
46
61
  licenses: []