iww 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/iww/version.rb +2 -1
- data/lib/iww.rb +12 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7974e7adfaee8bbab21f62fb3c9c4beee5f3427d44a42338f5678924d46ed032
|
4
|
+
data.tar.gz: a6011bc2c80d652631480119cd5608aea7b1125a5316ec349a5739f048362bd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a4e1640acbaffb6e223d52390f5a75adef322394f043d983ef2d2d8576431f6d9e567f5ba62e31b18568d015d0733b1bc72e5973981c6a1e863687129a3810d
|
7
|
+
data.tar.gz: 5ef658055ba42b1af673697c8df022e92ebfbaef6b5de3679de0c40f6d07a837718dcb9010e4c73034f2d8ed5138e8621aced9bf2268b613da1a44a01373d683
|
data/lib/iww/version.rb
CHANGED
data/lib/iww.rb
CHANGED
@@ -2,19 +2,22 @@
|
|
2
2
|
|
3
3
|
require_relative "iww/version"
|
4
4
|
|
5
|
+
# The Iww Module
|
5
6
|
module Iww
|
6
|
-
class Error < StandardError; end
|
7
|
+
class Error < StandardError; end # :nodoc:
|
7
8
|
|
8
9
|
@@LOGO = {
|
10
|
+
black: %[https://store.iww.org/wp-content/uploads/2019/09/logo-300x300.png],
|
9
11
|
white: %[https://www.iww.org/images/globe.svg],
|
10
12
|
red: %[https://www.iww.org/images/iww-globe-red.svg],
|
13
|
+
cat: %[https://store.iww.org/wp-content/uploads/2019/09/sabo-cat.png],
|
11
14
|
seal: %[https://www.iww.org/images/entitled-iww-logo-white.svg]
|
12
15
|
}
|
13
|
-
|
16
|
+
# images
|
14
17
|
def self.image
|
15
18
|
@@LOGO
|
16
19
|
end
|
17
|
-
|
20
|
+
# sign up link
|
18
21
|
def self.join!
|
19
22
|
%[https://redcard.iww.org/user/register]
|
20
23
|
end
|
@@ -29,7 +32,7 @@ module Iww
|
|
29
32
|
%[It is the historic mission of the working class to do away with capitalism. The army of prod uction must be organised, not only for everyday struggle with capitalists, but also to carry on production when capitalism shall have been overthrown. By organizing industrially we are forming the structure of the new society within the shell of the old.],
|
30
33
|
%[Knowing, therefore, that such an organization is absolutely necessary for emancipation, we unite under the following set of guiding principles and rules:]
|
31
34
|
]
|
32
|
-
|
35
|
+
# I.W.W. Constitution Preamble.
|
33
36
|
def self.preamble
|
34
37
|
@@OLD
|
35
38
|
end
|
@@ -74,6 +77,7 @@ module Iww
|
|
74
77
|
"690" => "Sex Industry"
|
75
78
|
}
|
76
79
|
|
80
|
+
# union divisions
|
77
81
|
def self.divisions
|
78
82
|
@@DIV
|
79
83
|
end
|
@@ -116,18 +120,20 @@ module Iww
|
|
116
120
|
"clerk" => ["660"],
|
117
121
|
"budtender" => ["660"]
|
118
122
|
}
|
119
|
-
|
123
|
+
# List of all jobs and divisions represented.
|
120
124
|
def self.jobs
|
121
125
|
[ @@MAP.keys, @@DIV.values ].flatten
|
122
126
|
end
|
123
127
|
|
128
|
+
# add job +j+ to division +k+.
|
124
129
|
def self.job k, j
|
125
130
|
if !@@MAP.has_key? k.to_s
|
126
131
|
@@MAP[k.to_s] = []
|
127
132
|
end
|
128
133
|
@@MAP[k.to_s] << j
|
129
134
|
end
|
130
|
-
|
135
|
+
|
136
|
+
# job lookup.
|
131
137
|
def self.[] x
|
132
138
|
if @@MAP.has_key? x.to_s
|
133
139
|
o = {}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iww
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Olson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A helpful ruby library to do union division lookups by job, number, or
|
14
14
|
description.
|